3 ms·
It absolutely doesn't, because it changes the semantics of what's being called, introducing deadlocks.
by continuational 3y ago
It absolutely doesn't, because it changes the semantics of what's being called, introducing deadlocks.
- kprotty 3y agoZig async doesn't change semantics of how things are called. If something is called sequentially, it will execute sequentially with respect to itself, with or without async.
- kissgyorgy 3y agoIt doesn't change the semantics, the documentation says: https://ziglang.org/documentation/0.10.1/#Async-Functions https://ziglang.org/documentation/0.10.1/#Async-Functions "Async functions can be called the same as normal functions." Only when you have an event loop, the order async functions are running might be different because of the scheduling, but everything else is the same.