[−][src]Function futures_lite::future::join
pub fn join<F1, F2>(future1: F1, future2: F2) -> Join<F1, F2>ⓘ where
F1: Future,
F2: Future,
Joins two futures, waiting for both to complete.
Examples
use futures_lite::*; let a = async { 1 }; let b = async { 2 }; assert_eq!(future::join(a, b).await, (1, 2));