News for hackers. Stuff that matters.
Re:Rust’s async isn’t colored by phibz on Friday March 12, 2021 @12:49AM (#26432550)
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.

There are no comments on this comment yet.