Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Dwedit
5 days ago
|
parent
|
context
|
favorite
| on:
Zig's new plan for asynchronous programs
Async always confused me as to when a function would actually create a new thread or not.
darthwalsh
4 days ago
|
next
[–]
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.
reply
metaltyphoon
5 days ago
|
prev
[–]
Why? Asynchrony has nothing to do with multiple threads. In fact you can have async with only a single thread!
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: