re: Don't make that function async. VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hey Asti, I'm not sure about async/await being just syntactic sugar for Promises. Sure it was made to make it work with promises easier. If you've...
 

Both yielding and await rewrite the code behind the scenes to a state machine which handles control flow, to behave like co-routines. It's not special in any respect - it could well be user code. There's little overhead other than a few jump tables.

code of conduct - report abuse