Expand description
An async notification channel.
This channel allows one task to notify another. No data is passed from the sender to receiver. A
NotifySender
may send multiple notifications and a NotifyReceiver
may receive multiple
notifications. Notifications will be coalesced, so if a NotifySender
sends multiple
notifications, the NotifyReceiver
may or may not receive all of the notifications. If there
are multiple NotifyReceiver
s, each will be notified.
An optional type can be attached to the NotifySender
and NotifyReceiver
to identify the
purpose of the notifications and to provide type checking.
Structs§
- Notify
Receiver 🔒 - A
NotifyReceiver
which can receive notifications from aNotifySender
. - Notify
Sender 🔒 - A
NotifySender
which can notifyNotifyReceiver
s.