pub fn new<K: Eq + Hash + Clone, M>( queue_style: QueueStyle, max_queue_size_per_key: usize, ) -> (Sender<K, M>, Receiver<K, M>)
Create a new Diem Channel and returns the two ends of the channel.