Re:Await in Rust
by hobofan on Monday August 12, 2019 @12:34PM
(#20677010)
> I dislike how this stuff "infect" all your code calls
Unlike in JS, it really doesn't. In Rust, at any point you have the option to run a Future returned from an async function to completion in a sync function (which blocks the thread) and stop the spread of async.
Unlike in JS, it really doesn't. In Rust, at any point you have the option to run a Future returned from an async function to completion in a sync function (which blocks the thread) and stop the spread of async.