Hmm why not use Promise.all
David Chase
151
It does achieve the same result. I’ve looked at using Bluebird’s Promise.bind, declaring variables in the outer scope and assigning them inside of .then, and using Promise.all with destructuring.
But all of these alternative methods are more verbose then just yielding your async code line by line using coroutines. I feel like the alternative that I present is just plain easier to reason about.