3 ms·
> I haven't looked into it personally but I hear Zig has an interesting answer. Can you expound on this or share any links about it?
by heavyset_go 5y ago
> I haven't looked into it personally but I hear Zig has an interesting answer.
Can you expound on this or share any links about it?
- lioeters 5y agoI'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/