Raxol.Core.Runtime.Events.Dispatcher.Behaviour behaviour (Raxol v0.5.0)

View Source

Defines the behaviour for the Event Dispatcher GenServer.

Primarily used for mocking with Mox.

Summary

Callbacks

dispatch(event)

@callback dispatch(event :: Raxol.Core.Runtime.Events.Event.t()) :: :ok

start_link(runtime_pid, initial_state)

@callback start_link(runtime_pid :: pid(), initial_state :: map()) :: GenServer.on_start()