forked from rust-lang/futures-rs
-
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.
fix: Shared must relinquish control to the executor if repolled
If the wrapped future requires that another future runs before it stops waking itself while returning pending the current Shared will loop forever. This removes the `REPOLL` case and returns pending immediately, since the current task is recorded and therefore woken through `Notifier`'s `wake_by_ref` the `Shared` future will still be polled again Fixes rust-lang#2130
- Loading branch information
Showing
2 changed files
with
31 additions
and
18 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
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