Commit f25e0b8
authored
refactor: Use node:timers/promises/setTimeout (#190)
Refactoring to use `require('node:timers/promises').setTimeout` rather
than `require('util').promisify(setTimeout)`.
No need to promisify a function as there's a native promise version of
that: [Timers Promises
API](https://nodejs.org/api/timers.html#timerspromisessettimeoutdelay-value-options)1 parent 5865291 commit f25e0b8
File tree
2 files changed
+2
-4
lines changed- test/resources/concurrency/srv
2 files changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
0 commit comments