Oban.Notifier.notify
You're seeing just the function
notify
, go back to Oban.Notifier module for more information.
Specs
notify(Oban.Config.t(), channel :: channel(), payload :: map() | [map()]) :: :ok
Broadcast a notification to listeners on all nodes.
Notifications are scoped to the configured prefix
. For example, if there are instances running
with the public
and private
prefixes, a notification published in the public
prefix won't
be picked up by processes listening with the private
prefix.
Example
Broadcast a gossip message:
Oban.Notifier.notify(Oban.config(), :gossip, %{message: "hi!"})