Y
Hacker News
new
|
ask
|
show
|
jobs
by
duped
1632 days ago
Promise.all([request1.then(doSomeWork), request2]) ?
1 comments
WolfOliver
1632 days ago
yes this would work. It's just nested.
link
Footkerchief
1632 days ago
The nesting has the advantage of directly expressing the dependency structure of the promises, which is otherwise a bit hard to infer.
link