How to Escape async/await 'Hell': medium.freecodecamp.org/avoi… (Take care you don't escape from 'callback hell' only to fall into bad practices using async/await instead.)

Apr 15, 2018 · 10:21 PM UTC

This is really important. One of my teammates wrote await in a loop and it actually sucks. I would say better use map when you have promise.... And resolve the returned array.
1
I think different aspects are messed up here: callback hell means unreadable code, doing async/await wrong means performance impact. But there is a way of using await correctly to make it concurrent and readible.
In short, an async function is a Promise. So use Promise.all to group calls together.