3 ms·
Zig only emits one version. Either: 1. The function does not have a suspend point, so it is emitted as a normal function, and it just gets called like a normal
by AndyKelley 6y ago
Zig only emits one version. Either:
1. The function does not have a suspend point, so it is emitted as a normal function, and it just gets called like a normal function at the async callsite. Await is a no-op.
or...
2. It has a suspend point. It is emitted with the async calling convention, and any normal callsites to it also become suspend points.
- dnautics 6y agoThanks for clarifying!! I had my understanding inverted!