Hacker News new | ask | show | jobs
by mypalmike 92 days ago
Yeah, async/await in JavaScript is syntactic sugar for promises.
1 comments

Your comment seems to imply that async/await should be or is in some setting not just sugar for promises. But, I am under the impression the async/await is (and always has been) sugar over explicit promises. Not just in JavaScript but in C#, where the sugar originates, as well.

Is there somewhere that async/await is implemented as a different concurrency mechanism?

They are coroutine state machines in rust and kotlin, and perhaps others.