3 ms·
> 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 pass
by IshKebab 2mo 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.
- mypalmike 2mo agoYeah, async/await in JavaScript is syntactic sugar for promises.
- throwaway17_17 2mo agoYour 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?
- explodes 2mo agoThey are coroutine state machines in rust and kotlin, and perhaps others.