-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Excuse me if my question is stupid, but what exactly is the difference between a "settled" and a "fulfilled" promise?
-
Settled means fulfilled or rejected, not pending. Fulfilled means it resolved, not rejected. Hope this helps! :)
- 1 more reply
New conversation -
-
-
Why would first be “home”?
-
Because only / is service-worker cached on http://v8.dev :)
End of conversation
New conversation -
-
-
I would love to pass promises to a function that returns an iterator with the responses when they arrive.
-
Sounds like Promise.allSettled:https://github.com/tc39/proposal-promise-allSettled …
End of conversation
New conversation -
-
-
it makes me so sad that none of the shortcutting versions will tell you _which_ promise resolved/rejected. the only way to tell is to wrap each promise in the array with another promise that includes some identifying information, & that's so sad to me.
-
What’s your use case?
- 2 more replies
New conversation -
-
-
When one promise resolves, will the others be cancelled, or will they run to completion only to have their results ignored?
-
They will be ignored
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
New ECMAScript proposal: Promise.any(promises)
Promise.any short-circuits when any of the input promises are fulfilled.
After Promise.allSettled, Promise.all, and Promise.race, this is the only missing combinator in the Promise landscape.