mule/notifiers/isolated

Types

pub type Message {
  Listen(
    channel: notifier.Channel,
    subscriber: process.Subject(notifier.Notification),
  )
  Unlisten(
    channel: notifier.Channel,
    subscriber: process.Subject(notifier.Notification),
  )
  Notify(notification: notifier.Notification)
  SubscriberDown(down: process.Down)
}

Constructors

Values

pub fn child(
  name: process.Name(Message),
) -> supervision.ChildSpecification(Nil)

A supervisor child spec that starts this notifier registered under name, erasing the started subject to Nil (supervised siblings resolve it by name). Pair it with new(process.named_subject(name)) to build the Notifier the runtime consumes — mule.start supervises this child.

Search Document