Skip to main content

BroadcastStream

Type Alias BroadcastStream 

Source
pub type BroadcastStream<T> = Pin<Box<dyn Stream<Item = T> + Send + 'static>>;
Expand description

A bounded, owned, cancellable stream of broadcast events.

Yielded by Broadcaster::subscribe; terminates when the originating CancellationToken fires or the broadcaster is dropped.

Aliased Typeยง

pub struct BroadcastStream<T> { /* private fields */ }