3 ms·
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
by sestep 9mo ago
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.
- gmueckl 9mo agoAsync/await should do a little more under the hood than what the typical OS threading APIs provide, for example forwarding function parameters and return values automatically instead of making the user write their own boilerplate structs for that.
- maxbond 9mo agoOne advantage is that it gives you the opportunity to move to a more sophisticated implementation later without breaking backwards compatibility (assuming the abstraction does not leak).