Function await::examples::async::parallel [] [src]

pub fn parallel<T: Send + 'static>(xs: Vec<Box<AwaitBox<T> + Send>>) -> Box<AwaitBox<Vec<Result<T>>>>

Forks all the Await's in parallel.

The returning Await will complete when all input Await's complete.

XXX: this should queue a new work item with the execution engine