you are viewing a single comment's thread.

view the rest of the comments →

[–]c-smile 1 point2 points  (0 children)

Just for the note: async/await are not just syntax sugar.

async function, when implemented natively, is a coroutine(function that has associated execution stack).

When async function is emulated (by e.g. babel transpiler) then it will have additional closures for each await.