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 :)

Continue reading at

https://itnext.io/why-async-await-in-a-foreach-is-not-working-5f13118f90d

#javascript #web-development #node

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