Created
January 18, 2016 21:15
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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