Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
xxpor
2y ago
0 comments
Save
Share
Usually the coloring problem IME goes the other way: you want to run a synchronous/blocking function in an async context. How does Zig deal with that?
0 comments
5 comments · 2 top-level
top
newest
oldest
lvass
2y ago
· 2 in thread
Function calls?
Nullabillity
2y ago
And now you're blocking the event loop.
lvass
2y ago
If you chose to use cooperative concurrency, it's because you can make it cooperate. Use preemption otherwise.
j16sdiz
2y ago
· 1 in thread
They have await keyword. This is noop in sync mode
kprotty
2y ago
Did you mean the `nosuspend` keyword? It only asserts nothing suspends rather than there being a "sync" mode.
j
/
k
navigate · click thread line to collapse