Skip to content

Instantly share code, notes, and snippets.

@ecowden
Created January 18, 2016 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ecowden/3fbcac44460a9f3c1364 to your computer and use it in GitHub Desktop.
Save ecowden/3fbcac44460a9f3c1364 to your computer and use it in GitHub Desktop.
It's easy to imagine a function that can just iterate through a bunch of promises, resolve them, pass the values on to the next and handle errors.
let promises = [getDataAsync(), getDataAsync(), getDataAsync()]
resolveAndHandleChainOfPromises(promises)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment