News for hackers. Stuff that matters.
Re:Comparison of Rust async and Linux thread context switch ... by littlestymaar on Friday February 12, 2021 @01:49PM (#26117019)
True, this doesn't work in Rust though, because nothing at all happens before the first time you poll a future, so you need an explicit task (but as other pointed out, it's pretty straightforward thanks to the `join!` macro).
Re:Comparison of Rust async and Linux thread context switch ... by Serow225 on Tuesday February 16, 2021 @03:08PM (#26158184)
Same as F# It uses 'cold' tasks, unlike C# that uses 'hot' tasks that start running immediately. But the F# way can compose in more advanced ways.