Re:Async-std: an async port of the Rust standard library
by Argorak on Friday August 16, 2019 @05:48PM
(#20720033)
Rust async functions are also different here. They don't run the code, they create a Future structure in it's initial state. Contrary to e.g. JavaScript, it doesn't start to run until you end up putting it on an executor. So the actual function call does something very different from what happens in other languages.
It's sometimes called "cold futures".
Re:Async-std: an async port of the Rust standard library
by aphexairlines on Friday August 16, 2019 @06:04PM
(#20720155)
Sounds similar to what the Scala ecosystem calls Tasks.
Isn't the alternative WCiYF is proposing to allow the caller to treat any function asynchronously, while having no way to discern whether doing so might be counterproductive?