Crate async_generator
source ·Expand description
Asynchronous generator-like functionality in stable Rust.
Structs
- An asynchronous generator.
- Control handle to yield items to the coroutine.
Enums
- Emitted state from an async generator.
Functions
- Produces an asynchronous
Stream
ofGeneratorState<I, R>
by invoking the given closure with a handle that can be used to yield items.