Why isn’t async/await working in a .forEach cycle?

francesco marassi
ITNEXT
Published in
6 min readApr 22, 2020

--

And 3 different ways to make it work

Let’s face it: since the introduction of the async/await pattern, we have tried to use it everywhere.

Long gone and (almost) forgotten are the days of big chains of javascript callbacks and Promises.resolve: now all the functions starts with an async, even if it won't contain asynchronous code... just in case :)

--

--