Function watch::channel

source · []
pub fn channel<T: Clone>(value: T) -> (WatchSender<T>, WatchReceiver<T>)
Expand description

Creates a new watch channel.

The starting value in the channel is not initially considered seen by the receiver.