You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I can make it work.
When executing the provided example:
importraceIteratorfrom'./racing-for-await-of/index.js';// See https://stackoverflow.com/questions/40920179/should-i-refrain-from-handling-promise-rejection-asynchronouslyprocess.on('rejectionHandled',()=>{});process.on('unhandledRejection',error=>{console.log('unhandledRejection');});constsleep=time=>newPromise(resolve=>setTimeout(resolve,time));(asyncfunction(){constarr=[sleep(2000).then(()=>'a'),'x',sleep(1000).then(()=>'b'),'y',sleep(3000).then(()=>'c'),'z',];forawait(constitemofraceIterator(arr)){console.log(item);}}());
Thanks for the module. Looks interesting!
However, I can make it work.
When executing the provided example:
It outputs:
The text was updated successfully, but these errors were encountered: