3 ms·
> Instead of thinking of a CPS-like transform where an async function is split into a series of continuations that are chained together via a Future::then metho
by fulafel 8y ago
> Instead of thinking of a CPS-like transform where an async function is split into a series of continuations that are chained together via a Future::then method, Rust instead uses a generator/coroutine transform to turn the function into a state machine
State machines are also what Clojure(Script) core.async uses.
(Easy choice as there are no continuations available)