Module ckb_channel::oneshot
source · [−]Expand description
A one-shot channel is used for sending a single message between asynchronous tasks.
Structs
The receiving half of Rust’s channel
(or sync_channel
) type.
This half can only be owned by one thread.
The sending-half of Rust’s synchronous sync_channel
type.
Functions
Create a new one-shot channel for sending single values across asynchronous tasks.