reth_metrics::common::mpsc

Function metered_unbounded_channel

Source
pub fn metered_unbounded_channel<T>(
    scope: &'static str,
) -> (UnboundedMeteredSender<T>, UnboundedMeteredReceiver<T>)
Available on crate feature common only.
Expand description

Wrapper around [mpsc::unbounded_channel] that returns a new unbounded metered channel.