DEV Community

Discussion on: Async/Await and the forEach Pit of Despair

Collapse
 
simov profile image
simo • Edited

The difference between forEach and for of in your example is that with forEach you are executing all HTTP requests in parallel, and with for of sequentially.

So it's not about 'fixing' things but instead understanding them.

Hope that helps.