Function polkadot_node_subsystem::gen::metered::channel
source · pub fn channel<T>(capacity: usize) -> (MeteredSender<T>, MeteredReceiver<T>)
Expand description
Create a wrapped mpsc::channel
pair of MeteredSender
and MeteredReceiver
.