ash v1.24.2 Ash.Notifier.PubSub.PublishAll View Source

Link to this section Summary

Functions

Works just like publish, except that it takes a type and publishes all actions of that type

Link to this section Functions

Link to this macro

publish_all(type, topic, opts \\ [])

View Source (macro)

Works just like publish, except that it takes a type and publishes all actions of that type

Examples

publish_all :create, "created"

Arguments

  • :topic - The topic to publish

  • :type - In the case of multiple actions with the same name, you may need to provide the action type as well.

Options

  • :action - The name of the action that should be published

  • :event - The name of the event to publish. Defaults to the action name