Skip to main content

subscription_channel

Function subscription_channel 

Source
pub fn subscription_channel<T>() -> (SubscriptionPush<T>, Receiver<T>)
where T: Send + 'static,
Expand description

Builds a fresh bounded channel plus the SubscriptionPush handle callers clone into every CratestackEventBus::subscribe closure that should feed it.