Module stream

Source
Expand description

Create asynchronous streams of data.

Functionsยง

channel
Creates a new [Stream] that produces the items sent from a Future to the [mpsc::Sender] provided to the closure.
try_channel
Creates a new [Stream] that produces the items sent from a Future that can fail to the [mpsc::Sender] provided to the closure.