Uh oh!
There was an error while loading. Please reload this page.
timers: allow promisified timeouts/immediates to be canceled - #33833
timers: allow promisified timeouts/immediates to be canceled#33833jasnell wants to merge 1 commit into
Conversation
mcollina
commented
Jun 10, 2020
I like this. However I think it's time we design a few new apis for I do On a technical side this would have the benefit of avoiding to call |
jasnell
commented
Jun 10, 2020
I've been considered exporting the promisified versions of const{
setTimeout,
setImmediate
}=require('timers/promises');I'm also considering a promisified version of const{
setInterval,}=require('timers/promises');(async()=>{forawait(constnofsetInterval(1000)){console.log('tick...')}})()We also need to consider how to ref/unref promisified timers/intervals/immediates. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
60ee29c to
129a5c2Comparejasnell
commented
Jun 16, 2020
@mcollina ... I will introduce |
nodejs-github-bot
commented
Jun 16, 2020
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Using the new experimental AbortController... Signed-off-by: James M Snell <jasnell@gmail.com>
28e3e65 to
b2e0153Comparenodejs-github-bot
commented
Jun 18, 2020
nodejs-github-bot
commented
Jun 18, 2020
Using the new experimental AbortController... Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #33833 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
jasnell
commented
Jun 18, 2020
Landed in bfbdc84 |
codebytere
commented
Jun 22, 2020
Marking |
Using the new experimental AbortController... Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: nodejs#33833 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Using the new experimental AbortController...
This will necessarily be experimental for as long as
AbortControlleris experimental.Signed-off-by: James M Snell jasnell@gmail.com
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes