mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
a8904e8eee
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> |
||
---|---|---|
.. | ||
api | ||
api_assets | ||
changelogs | ||
guides | ||
.eslintrc.yaml | ||
abi_version_registry.json | ||
first_timer_badge.png | ||
full-white-stripe.jpg | ||
node.1 | ||
osx_installer_logo.png | ||
template.html | ||
thin-white-stripe.jpg |