Function promising_future::all
[−]
[src]
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
Return a Future of all values in an iterator of Future
s.
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.