Function channel::diem_channel::new
source · pub fn new<K: Eq + Hash + Clone, M>(
queue_style: QueueStyle,
max_queue_size_per_key: usize,
counters: Option<&'static IntCounterVec>
) -> (Sender<K, M>, Receiver<K, M>)
Expand description
Create a new Diem Channel and returns the two ends of the channel.