← Back to context

Comment by IshKebab

8 hours ago

> In the web world async/await has already won from threads

Slightly off topic but threads were never supported by the web (even now you only have message passing between workers) so it's a bit hollow to say async won.

Yeah, async/await in JavaScript is syntactic sugar for promises.

  • 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?