Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Async always confused me as to when a function would actually create a new thread or not.




Zig doesn't make it simpler! Now in a single function, using async won't spawn threads, while using sync might.

But I'm digging this abstraction.


Why? Asynchrony has nothing to do with multiple threads. In fact you can have async with only a single thread!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: