2 ms·
Thanks, but how is a waiter suspended? The typical await implementation will do a CPS conversion of the waiter function, but to trigger the conversion it needs
by gpderetta 5y ago
Thanks, but how is a waiter suspended? The typical await implementation will do a CPS conversion of the waiter function, but to trigger the conversion it needs to see an await call, or pessimistically generate two versions of each functions.
But from your example it seems that Zig just do context switching (not knocking it, I'm a big fan of it over await), but then why would it need an await/async keyword at all?
- gpderetta 5y agoTo answer myself. Zig doesn't really do separate compilation: https://github.com/ziglang/zig/issues/233 https://github.com/ziglang/zig/issues/233