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

Early exit stream selection #1

Closed
wants to merge 13 commits into from

Commits on Apr 30, 2022

  1. Update GitHub Actions actions/checkout@v2 to v3 (rust-lang#2595)

    The v2 implementation uses Node 12, which is end-of-life on April 30, 2022.
    See https://nodejs.org/en/about/releases/. Update to v3, which is based on
    Node 16 whose support lasts until April 30, 2024.
    dtolnay committed Apr 30, 2022
    Configuration menu
    Copy the full SHA
    1495f64 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2022

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

Commits on May 10, 2022

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

Commits on May 11, 2022

  1. Configuration menu
    Copy the full SHA
    cc16821 View commit details
    Browse the repository at this point in the history
  2. Make run_until_stalled handle self-waking futures (rust-lang#2593)

    LocalPool::try_run_one and run_until_stalled now correctly re-try when a
    future "yields" by calling wake and returning Pending.
    khollbach committed May 11, 2022
    Configuration menu
    Copy the full SHA
    657264d View commit details
    Browse the repository at this point in the history

Commits on May 28, 2022

  1. Fix rustdoc::broken_intra_doc_links warning (rust-lang#2602)

    ```
    error: unresolved link to `select`
       --> futures-util/src/future/try_future/mod.rs:272:17
        |
    272 |     /// using [`select!`] or [`join!`].
        |                 ^^^^^^^ no item named `select` in scope
        |
        = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings`
        = note: `macro_rules` named `select` exists in this crate, but it is not in scope at this link's location
    
    error: unresolved link to `join`
       --> futures-util/src/future/try_future/mod.rs:272:32
        |
    272 |     /// using [`select!`] or [`join!`].
        |                                ^^^^^ no item named `join` in scope
        |
        = note: `macro_rules` named `join` exists in this crate, but it is not in scope at this link's location
    
    error: unresolved link to `select`
       --> futures-util/src/future/try_future/mod.rs:320:27
        |
    320 |     /// type when using [`select!`] or [`join!`].
        |                           ^^^^^^^ no item named `select` in scope
        |
        = note: `macro_rules` named `select` exists in this crate, but it is not in scope at this link's location
    
    error: unresolved link to `join`
       --> futures-util/src/future/try_future/mod.rs:320:42
        |
    320 |     /// type when using [`select!`] or [`join!`].
        |                                          ^^^^^ no item named `join` in scope
        |
        = note: `macro_rules` named `join` exists in this crate, but it is not in scope at this link's location
    
    error: unresolved link to `select`
        --> futures-util/src/stream/stream/mod.rs:1802:15
         |
    1802 |     /// the [`select!`] macro.
         |               ^^^^^^^ no item named `select` in scope
         |
         = note: `macro_rules` named `select` exists in this crate, but it is not in scope at this link's location
    ```
    taiki-e committed May 28, 2022
    Configuration menu
    Copy the full SHA
    a0c9fd5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    90094e1 View commit details
    Browse the repository at this point in the history
  3. Refactor: prefer early return in future::select (rust-lang#2587)

    Although a relatively small change, it makes the code a little bit
    more readable than the originally nested `match` expressions.
    BastiDood committed May 28, 2022
    Configuration menu
    Copy the full SHA
    c0e02d2 View commit details
    Browse the repository at this point in the history
  4. Fix typo (rust-lang#2603)

    SeeKRelative -> SeekRelative
    taiki-e committed May 28, 2022
    Configuration menu
    Copy the full SHA
    4e210b8 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2022

  1. Fix minor typo in enter doc comment (rust-lang#2604)

    Fixes a minor typo by changing "a tasks" to "a task" in the
    documentation comment for enter.
    
    Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
    hasheddan committed May 29, 2022
    Configuration menu
    Copy the full SHA
    7a4fc6e View commit details
    Browse the repository at this point in the history

Commits on May 31, 2022

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

Commits on Jun 1, 2022

  1. Add stream selection early exit

    `select_early_exit` creates a stream that produces elements while
    either stream contains elements, and terminates when either stream
    runs out of elements.
    414owen committed Jun 1, 2022
    Configuration menu
    Copy the full SHA
    b97d95e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8aefbed View commit details
    Browse the repository at this point in the history