3 ms·
Promise.all([request1.then(doSomeWork), request2]) ?
by duped 5y ago
Promise.all([request1.then(doSomeWork), request2])
?
- WolfOliver 5y agoyes this would work. It's just nested.
- Footkerchief 5y agoThe nesting has the advantage of directly expressing the dependency structure of the promises, which is otherwise a bit hard to infer.