ckb_channel::oneshot

Function channel

Source
pub fn channel<T>() -> (Sender<T>, Receiver<T>)
Expand description

Create a new one-shot channel for sending single values across asynchronous tasks.