Re:The Rust I wanted had no future
by bourneavent on Tuesday June 06, 2023 @04:53AM
(#36210019)
>Do you mean on a hardware level? Because otherwise, hell no.
I mean in the context of async await. The smallest primitive that is properly async is an IO function.
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.