Crate async_generator

Source
Expand description

Asynchronous generator-like functionality in stable Rust.

Structs§

Generator
An asynchronous generator.
Yield
Control handle to yield items to the coroutine.

Enums§

GeneratorState
Emitted state from an async generator.

Functions§

generate
Produces an asynchronous Stream of GeneratorState<I, R> by invoking the given closure with a handle that can be used to yield items.