pub fn metered_channel<T>(
buffer: usize,
scope: &'static str,
) -> (MeteredSender<T>, MeteredReceiver<T>)
Available on crate feature
common
only.Expand description
Wrapper around [mpsc::channel
] that returns a new bounded metered channel with the given
buffer size.