Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
flattersatz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
flattersatz
11y ago
I believe promise.each is not serial in the way you think it is. Promises do handle only the resolution of certain events. So in your example both statements are executed exactly at the time you set up your array of promises. Promises.each