News for hackers. Stuff that matters.
Re:Comparison of Rust async and Linux thread context switch ... by Freaky on Friday February 12, 2021 @10:28AM (#26114660)
Read the first sentence.

> This blog post describes a proposed scheduler for async-std that did not end up being merged for several reasons.

I don't think it's a particularly good idea in the first place - it's basically an automatic watchdog-driven block_in_place(). It doesn't remove the problem of blocking in futures, it just limits the damage to the local task rather than blocking the entire executor.

That's fine in the simple case of future-per-task, but it's pretty common to be polling multiple futures concurrently within one, so it's not a general solution.

There are no comments on this comment yet.