Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream::ForEach can no longer block indefinitely #2224

Closed
wants to merge 2 commits into from

Commits on Oct 2, 2020

  1. stream::ForEach can no longer block indefinitely

    This PR removes the `loop` from `stream::ForEach`. Instead, the future
    makes at most 1 attempt to poll its interior, and if it can make more
    progress, it immediately calls `wake_by_ref()`, then returns Pending.
    In this way, under a fair executor, it can't accidentally starve the
    task queue.
    Lucretiel committed Oct 2, 2020
    Configuration menu
    Copy the full SHA
    ea589a6 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2020

  1. Configuration menu
    Copy the full SHA
    d40e242 View commit details
    Browse the repository at this point in the history