-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
Closed
Labels
promisesIssues and PRs related to ECMAScript promises.Issues and PRs related to ECMAScript promises.timersIssues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.
Description
We can already util.promisify(setTimeout), but technically we can make timer objects contain a .then method (getter?) that could create a promise only when awaited allowing timers to be await without having to call util.promisify or sacrificing performance of timers for regular users.
- Do we like this?
- Do we think it's a good idea?
sindresorhus and nodeav
Metadata
Metadata
Assignees
Labels
promisesIssues and PRs related to ECMAScript promises.Issues and PRs related to ECMAScript promises.timersIssues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.