Expand description
A synchronization primitive for passing the latest value to multiple receivers.
Structs§
- A anonymous receiver can NOT
.awaita change in theWatchvalue. - A receiver of a
Watchchannel that cannot.awaitvalues. - A receiver that cannot
.awaitvalue, which holds a dynamic reference to aWatchchannel. - A receiver which holds a dynamic reference to a
Watchchannel. - A sender which holds a dynamic reference to a
Watchchannel. - A receiver can
.awaita change in theWatchvalue. - A receiver of a
Watchchannel. - A sender of a
Watchchannel. - A receiver can
.awaita change in theWatchvalue. - The
Watchis a single-slot signaling primitive that allows multiple receivers to concurrently await 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§
- A trait representing the ‘inner’ behavior of the
Watch.