embassy-sync

Crates

git

Versions

default

Flavors

embassy_sync

Module watch

Source
Expand description

A synchronization primitive for passing the latest value to multiple receivers.

Structs§

  • A anonymous receiver can NOT .await a change in the Watch value.
  • A receiver of a Watch channel that cannot .await values.
  • A receiver that cannot .await value, which holds a dynamic reference to a Watch 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 the Watch value.
  • A receiver of a Watch channel.
  • A sender of a Watch channel.
  • A receiver can .await a change in the Watch value.
  • The Watch is a single-slot signaling primitive that allows multiple receivers to concurrently await changes to the value. Unlike a Signal, Watch supports multiple receivers, and unlike a PubSubChannel, 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.