Tracking Issue for core::future::join!
· Issue #91642 · rust-lang/rust (original) (raw)
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