Expand description
A synchronization primitive for passing the latest value to multiple receivers.
Structs§
- A anonymous receiver can NOT
.await
a change in theWatch
value. - A receiver of a
Watch
channel that cannot.await
values. - A receiver that cannot
.await
value, which holds a dynamic reference to aWatch
channel. - A receiver which holds a dynamic reference to a
Watch
channel. - A sender which holds a dynamic reference to a
Watch
channel. - A receiver can
.await
a change in theWatch
value. - A receiver of a
Watch
channel. - A sender of a
Watch
channel. - A receiver can
.await
a change in theWatch
value. - The
Watch
is a single-slot signaling primitive that allows multiple receivers to concurrently await changes to the value. Unlike aSignal
,Watch
supports multiple receivers, and unlike aPubSubChannel
,Watch
immediately 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
.