[−][src]Module async_std::stream
Asynchronous iteration.
This module is an async version of std::iter.
Examples
use async_std::prelude::*; use async_std::stream; let mut s = stream::repeat(9).take(3); while let Some(v) = s.next().await { assert_eq!(v, 9); }
Structs
| Empty | A stream that doesn't yield any items. |
| Once | A stream that yields a single item. |
| Repeat | A stream that yields the same item repeatedly. |
| Take | A stream that yields the first |
Traits
| Stream | An asynchronous stream of values. |
Functions
| empty | Creates a stream that doesn't yield any items. |
| once | Creates a stream that yields a single item. |
| repeat | Creates a stream that yields the same item repeatedly. |