r/ProgrammerHumor • • May 24 '22

Pick one (or more)

Post image
429 Upvotes

267 comments sorted by

View all comments

Show parent comment

10

u/_t_dang_ May 24 '22

In a JS runtime, async/await is the modern approach to handling promises, and conceptually allows you to think of them as synchronously executed in many cases

3

u/TheRealFloomby May 25 '22

Promise.all is incredibly helpful in certain instances.

2

u/_t_dang_ May 25 '22

True! It’s worth clarifying that async/await isn’t the optimal solution every time, just another useful tool for certain scenarios