[][src]Function suspend::iter_stream

pub fn iter_stream<'s, S>(stream: S) -> Iter<'s, S::Item>

Important traits for Iter<'s, T>

impl<'s, T> Iterator for Iter<'s, T> type Item = T;
where
    S: Stream + Send + 's, 

A convenience method to turn a Stream into an Iterator which parks the current thread until items are available.