Skip to content

Instantly share code, notes, and snippets.

@dance2die
Last active December 22, 2023 23:26
Show Gist options
  • Save dance2die/9d9f7531775efed3eca1ad70bfd17a73 to your computer and use it in GitHub Desktop.
Save dance2die/9d9f7531775efed3eca1ad70bfd17a73 to your computer and use it in GitHub Desktop.
Short-circuit? Short-circuits on? Fulfilled on? Rejected on?
Promise.all Yes First rejected promise All promise fulfilled First rejected promise
Promise.allSettled No N/A Always N/A
Promise.race Yes First settled First promise fulfilled First rejected promise
Promise.any Yes First fulfilled First promise fulfilled All rejected promises
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment