3 ms·
> Async is almost useless when you’re not incredibly I/O bound. I'm not sure that's true. The async/await model is about representing a state machine in impera
by jcranmer 3y ago
> Async is almost useless when you’re not incredibly I/O bound.
I'm not sure that's true. The async/await model is about representing a state machine in imperative code. Not all state machines can be written imperatively, but when they can be, it is often clearer than writing the state machine manually. I/O is the most common scenario for such state machines, but I can see a few other OS scenarios where you might want to use async/await instead (e.g., process management is probably better represented with async/await).