Skip to content

Tracking Issue for core::future::join! #91642

Open
@ibraheemdev

Description

@ibraheemdev

Feature gate: #![feature(future_join)]

This is a tracking issue for core::future::join!, which polls multiple futures concurrently and returns their outputs.

async fn run() {
    let (a, b) = join!(async { 0 }, async { 1 }).await;
}

Public API

// core::future

pub macro join {
    ( $($fut:expr),* $(,)?) => {
        // ...
    }
}

Steps / History

Unresolved Questions

  • Implicit .await? Tokio and futures currently do this.
  • await_all! vs join!
  • join/and method on Future: a.and(b).await
  • Implement IntoFuture for N-arity tuples? let (a, b, c) = (a, b, c).await

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions