logoalt Hacker News

seabrookmxyesterday at 4:27 PM1 replyview on HN

It's odd that the async/await syntax _exclusively_ uses threads under the hood. I guess it makes for a straightforward implementation, but in every language I've seen the point of async/await is to use an event loop/cooperative multitasking.


Replies

sestepyesterday at 6:16 PM

Noob question: if it just compiles to threads, is there any need for special syntax in the first place? My understanding was that no language support should be required for blocking on a thread.

show 2 replies