Files
node/lib
James M Snell a8904e8eee timers: introduce timers/promises
Move the promisified timers implementations into a new sub-module
to avoid the need to promisify. The promisified versions now return
the timers/promises versions.

Also adds `ref` option to the promisified versions

```js
const {
  setTimeout,
  setImmediate
} = require('timers/promises');

setTimeout(10, null, { ref: false })
  .then(console.log);

setImmediate(null, { ref: false })
  .then(console.log);

```

Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/33950
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2020-06-22 14:29:49 -07:00
..
2020-05-24 03:26:21 +02:00
2020-02-18 22:15:50 -08:00
2020-06-22 14:29:49 -07:00
2020-06-07 12:14:49 +02:00
2020-05-27 10:24:05 +02:00
2019-12-17 08:11:13 -05:00
2020-06-02 15:38:59 +02:00
2020-05-23 20:47:02 +02:00
2020-06-19 07:40:11 -07:00
2020-05-16 06:42:16 +02:00
2020-06-19 17:37:26 +02:00
2020-05-30 10:17:31 -07:00
2020-05-30 17:24:43 -04:00
2020-06-16 09:23:34 -07:00
2020-03-09 12:44:16 +01:00
2020-04-28 19:10:26 +02:00
2020-05-20 17:05:06 +02:00
2020-05-30 17:24:43 -04:00
2020-06-22 14:29:49 -07:00
2020-05-16 06:42:16 +02:00
2020-05-16 06:42:16 +02:00
2020-06-09 17:26:10 +02:00