# Function futures::stream::futures_ordered [−] [src]

    pub fn futures_ordered<I>(
        futures: I
    ) -> FuturesOrdered<<I::Item as IntoFuture>::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 their originating futures were submitted to the queue. If the futures complete out of order, items will be stored internally within `FuturesOrdered` until all preceding items have been yielded.

Note that the returned queue can also be used to dynamically push more futures into the queue as they become available.

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)