-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: 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.Relevant to the library API team, which will review and decide on the PR/issue.
Description
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
- Implementation: Implement
core::future::join!
#91645 - Minor improvements: Minor improvements to
future::join!
's implementation #91721 - Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- Implicit .await? Tokio and futures currently do this.
await_all!
vsjoin!
join/and
method onFuture
:a.and(b).await
- Implement
IntoFuture
for N-arity tuples?let (a, b, c) = (a, b, c).await
danielhenrymantilla, ericbarrionuevo, NickantX, samdenty, Insprill and 14 more
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: 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.Relevant to the library API team, which will review and decide on the PR/issue.