3 ms·
I think of async functions in rust as regular functions that happen to return a Future. Sure to do something useful you need to use an executor (or follow the s
by phibz 6y ago
I think of async functions in rust as regular functions that happen to return a Future. Sure to do something useful you need to use an executor (or follow the semantics of one) which uses a context to track the progress through a state machine until success or failure. But it isn't from a different "universe" (color) of functions. That's the big difference here from say Javascript. At least that's how I explain it to myself.