forked from tokio-rs/tokio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce
biased
argument for select!
Similar to `futures::select_biased!`, it is sometimes beneficial to provide developers with strict control over the polling order of futures. Most of the time, the fairness guarantees that `select!` provides through RNG can be thought out by a careful developer to ensure that no one future will monopolize all of the CPU time. In exchange for this, the developer gets a performance boost as they do not need to spend time generating endless random numbers. Fixes: tokio-rs#2181
- Loading branch information
Nate Mara
committed
Mar 10, 2021
1 parent
6919f7c
commit 9530a2e
Showing
1 changed file
with
87 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters