|
|
|
|
|
by kaba0
1109 days ago
|
|
> but everyone knows all IO calls are async Do you mean on a hardware level? Because otherwise, hell no. If I’m writing a binary file parser that buffers some data and processes it, I sure as hell want to wait for IO, there is no other meaningful way forward in most cases. It is also not a small isolated part, but a tight loop bouncing between CPU and IO. Async is a function of the caller. |
|
I mean in the context of async await. The smallest primitive that is properly async is an IO function.