3 ms·
I believe `await` is sequential in the scope. `Promise.all` would be truly parallel. edit: just checked and your version is indeed parallel. Interesting.
by cropsieboss 9y 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.
- dvlsg 9y agoYup - 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.