pub fn mpsc_channel_no_memquota<T>(buffer: usize) -> (Sender<T>, Receiver<T>)
Expand description
Precisely [futures::channel::mpsc::channel
]
In arti.git
we disallow this method, because we want to ensure
that all our queues participate in our memory quota system
(see tor-memquota
and tor_proto::memquota
).y
Use this method to make an mpsc::channel
when you know that’s not appropriate.
(#[allow]
on an expression is unstable Rust, so this is needed to avoid
decorating whole functions with the allow.)