Skip to content

Instantly share code, notes, and snippets.

@kepta

kepta/block14.ps Secret

Created February 21, 2018 14:42
Show Gist options
  • Save kepta/411924a25c670b51360cac7562af1a87 to your computer and use it in GitHub Desktop.
Save kepta/411924a25c670b51360cac7562af1a87 to your computer and use it in GitHub Desktop.
Takes an array of promises
then runs all of them simultaneously
then waits for all of them to finish
then returns a new Promise which resolves into an Array
catches if even a single fails/rejects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment