Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Dwedit
· 1y ago · 0 comments
Async always confused me as to when a function would actually create a new thread or not.
Comments
[–]
darthwalsh
1y ago
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.
[–]
metaltyphoon
1y ago
Why? Asynchrony has nothing to do with multiple threads. In fact you can have async with only a single thread!