Important traits for Join3<Fut1, Fut2, Fut3>
impl<Fut1, Fut2, Fut3> Future for Join3<Fut1, Fut2, Fut3> where
Fut1: Future,
Fut2: Future,
Fut3: Future, type Output = (<Fut1 as Future>::Output, <Fut2 as Future>::Output, <Fut3 as Future>::Output);
pub fn join3<Fut1, Fut2, Fut3>(
future1: Fut1,
future2: Fut2,
future3: Fut3
) -> Join3<Fut1, Fut2, Fut3> where
Fut1: Future,
Fut2: Future,
Fut3: Future,
Same as join
, but with more futures.
#![feature(async_await)]
use futures::future;
let a = future::ready(1);
let b = future::ready(2);
let c = future::ready(3);
let tuple = future::join3(a, b, c);
assert_eq!(tuple.await, (1, 2, 3));