3 ms·
I'm curious about this also. From what I could find about how async/await works in Zig.. > The style of Zig’s async may be described as suspendible stackless c
by lioeters 5y ago
I'm curious about this also. From what I could find about how async/await works in Zig..
> The style of Zig’s async may be described as suspendible stackless coroutines. Zig’s async is very different to something like an OS thread which has a stack, and can only be suspended by the kernel.
> Furthermore, Zig’s async is there to provide you with control flow structures and code generation; async does not imply parallelism or the usage of threads.
https://ziglearn.org/chapter-5/ https://ziglearn.org/chapter-5/