Hacker News new | ask | show | jobs
by duped 1632 days ago

    Promise.all([request1.then(doSomeWork), request2])

?
1 comments

yes this would work. It's just nested.
The nesting has the advantage of directly expressing the dependency structure of the promises, which is otherwise a bit hard to infer.