15 ms·
That's interesting. So this means that the only thing Zig does is auto-insert the 'async' qualifiers in front of functions instead of requiring you to insert th
by hsn915 5y ago
That's interesting. So this means that the only thing Zig does is auto-insert the 'async' qualifiers in front of functions instead of requiring you to insert them?
- gavinhoward 5y agoAs far as I understand it, yes, as well as, insert an `await` right after, turning the enclosing function itself `async`, which means that anything that calls the enclosing function (the caller) would also need to have `async` and `await` inserted, and the process would keep going. That is what I mean by viral: if a function low in the call chain is turned `async`, every function above it is too.