pub fn oneshot_broadcast_channel<T>(
) -> (OneshotBroadcastSender<T>, OneshotBroadcastReceiver<T>)where
    T: Send + Clone,
Expand description

Creates a new oneshot broadcast channel.

Refer to generic_oneshot_broadcast_channel for details.

Example for creating a channel to transmit an integer value:

let (sender, receiver) = oneshot_broadcast_channel::<i32>();