4 ms·
Awaiting in a loop usually is not a good idea. Map with Promise.all / any is probably much faster. edit: now reading about for..await..of. Interesting, I never
by Maarten88 9y ago
Awaiting in a loop usually is not a good idea. Map with Promise.all / any is probably much faster.
edit: now reading about for..await..of. Interesting, I never used that.
- Klathmon 9y agoEven outside of for..await..of you still need to do async things inside a synchronous-like loop.