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
for await is known to not close sync iterables if rejected promise is emited.
Like
function*It(){try{yieldPromise.resolve("a")yieldPromise.reject("b")}finally{console.log("finalized")}}// prints "a" and never prints "finalized"forawait(constxofIt()){console.log(x)}// prints "a" and then prints "finalized"for(constxofIt()){console.log(awaitx)}
which of theses behaviors will implement Array.fromAsync?
The text was updated successfully, but these errors were encountered:
for await
is known to not close sync iterables if rejected promise is emited.Like
which of theses behaviors will implement Array.fromAsync?
The text was updated successfully, but these errors were encountered: