Function futures::stream::futures_unordered
[−]
[src]
pub fn futures_unordered<I>(futures: I) -> FuturesUnordered<I::Item::Future> where
I: IntoIterator,
I::Item: IntoFuture,
Converts a list of futures into a Stream
of results from the futures.
This function will take an list of futures (e.g. a vector, an iterator,
etc), and return a stream. The stream will yield items as they become
available on the futures internally, in the order that they become
available. This function is similar to buffer_unordered
in that it may
return items in a different order than in the list specified.
Note that the returned queue can also be used to dynamically push more futures onto the queue as they become available.