pub fn channel<T>(capacity: usize) -> (MeteredSender<T>, MeteredReceiver<T>)
Expand description

Create a wrapped mpsc::channel pair of MeteredSender and MeteredReceiver.