Module notify

Source
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 NotifyReceivers, 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§

NotifyReceiver 🔒
A NotifyReceiver which can receive notifications from a NotifySender.
NotifySender 🔒
A NotifySender which can notify NotifyReceivers.