iota_metrics::metered_channel

Function channel

Source
pub fn channel<T>(size: usize, gauge: &IntGauge) -> (Sender<T>, Receiver<T>)
Expand description

Similar to mpsc::channel, channel creates a pair of Sender and Receiver Deprecated: use monitored_mpsc::channel instead.