-
Notifications
You must be signed in to change notification settings - Fork 628
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport to 0.1: Avoid starvation from FuturesUnordered::poll_next
This backports #2049 to the 0.1 branch. Without this change, polling > 200 futures trough a FuturesUnordered on a Tokio 0.2 executor results in a busy loop in Tokio's cooperative scheduling module. See for a repro of where this breaks: tokio-rs/tokio#2390 Tested by running the reproducer I submitted there. Without this change, it hangs forever (spinning on CPU). With the change, it doesn't.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 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