Thanks for your thoughts. You’re right that it’s similar to Promise.all, but there’s a couple of differences:
1. With Promise.all(), you still need to have functions which return promises to feed into Promise.all() and that’s part of the painful part. 2. Promise.all is not designed for chained promises. As far as async/await goes: I’m not a big fan of syntactical sugar to hide cumbersome patterns. That’s not a solution. It’s a band-aid IMO. My $0.02, Harbs > On Jan 21, 2019, at 6:13 PM, szogun1987 <[email protected]> wrote: > > I can't see how your manager better than regular promise API. > AsyncManager.push/done can be replaced by Promise.all method, that accepts > array of promises and combines theirs result into array. > AFAIK in Javascript you can handle error in final "then" method call, > intermediate promises passes error further if you don't handle it. If you > are using async/await syntax you can surround larger piece of code with > try/catch. > > > > -- > Sent from: http://apache-royale-development.20373.n8.nabble.com/
