all

Function all 

Source
pub fn all<T, I, F>(futures: I) -> Future<F>
where T: Send + 'static, I: IntoIterator<Item = Future<T>> + Send + 'static, F: FromIterator<T> + Send + 'static,
Expand description

Return a Future of all values in an iterator of Futures.

Take an iterator producing Future<T> values and return a Future<Vec<T>>.

This function is non-blocking; the blocking occurs within a thread. This uses std::thread::spawn() to create the thread needed to block.