Raxol. Core. Runtime. Events. Dispatcher
(Raxol v2.6.1)
View Source
Manages 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. Resize is forwarded to the app's update/2 like any other message; quit/focus/error stay runtime-only.
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. Resize is forwarded to the app's update/2 like any other message; quit/focus/error stay runtime-only.
Subscribes the calling process to a specific event topic.
@spec unsubscribe(atom()) :: :ok
Unsubscribes the calling process from a specific event topic.