Raxol.Core.Runtime.Events.Dispatcher (Raxol v2.0.1)
View SourceManages the application state (model) and dispatches events to the application's
update/2 function. It also handles commands returned by update/2.
Summary
Functions
Broadcasts an event payload to all subscribers of a topic.
Returns a specification to start this module under a supervisor.
Dispatches an event to the appropriate handler based on event type and target.
Handles an application-level event and updates the application state.
Processes a system-level event that affects the runtime itself rather than the application logic.
Subscribes the calling process to a specific event topic.
Unsubscribes the calling process from a specific event topic.
Functions
Broadcasts an event payload to all subscribers of a topic.
Returns a specification to start this module under a supervisor.
See Supervisor.
Dispatches an event to the appropriate handler based on event type and target.
Handles an application-level event and updates the application state.
Processes a system-level event that affects the runtime itself rather than the application logic.
Subscribes the calling process to a specific event topic.
@spec unsubscribe(atom()) :: :ok
Unsubscribes the calling process from a specific event topic.