Expand description
A synchronization primitive for passing the latest value to multiple receivers.
Structs§
- Rcv
- A receiver can get a change in the
Watchvalue. - Receiver
- A receiver of a
Watchchannel. - Sender
- A sender of a
Watchchannel. - Snd
- A receiver can
.awaita change in theWatchvalue. - Watch
- The
Watchis a single-slot signaling primitive that allows multiple (N) receivers to get changes to the value. Unlike aSignal,Watchsupports multiple receivers, and unlike aPubSubChannel,Watchimmediately overwrites the previous value when a new one is sent, without waiting for all receivers to read the previous value.
Traits§
- Watch
Behavior - A trait representing the ‘inner’ behavior of the
Watch.