Hacker News new | ask | show | jobs
by cropsieboss 3214 days ago
I believe `await` is sequential in the scope. `Promise.all` would be truly parallel.

edit: just checked and your version is indeed parallel. Interesting.

1 comments

Yup - all promises are "started" before you await them.

I still typically prefer Promise.all though. It's a bit more obvious what's going on (IMO) and you can skip the additional lines for assigning the promises to variables.