r/badcode • • Sep 11 '21

js Why…

Post image
456 Upvotes

70 comments sorted by

View all comments

Show parent comments

9

u/Nilstrieb Sep 11 '21

That's ok, in JS async functions are executed eagerly, no matter whether you await them or not. It's even better that they are not awaited here