event v0.1.0 Event.Processor behaviour
Receives events from Event.Source or Event.Processor before passing them on to the next connected event handler(s)
Link to this section Summary
Functions
Asynchronously notify the processor that an event has occurred. Returns immediately
Send a message to the event processor and await a response
Send an asynchronous message to the event processor
Handle a code change
Handle a synchronous event notification
Handle an asynchronous event notification
Handle incoming events
Handle an incoming message
Handle a subscription
Initialize event processor state
Start an EventProcessor process
Synchronously notify the processor that an event has occurred. This call will block until the event has been consumed, or until the timeout is reached
Handle process termination
Link to this section Types
Link to this section Functions
Asynchronously notify the processor that an event has occurred. Returns immediately.
Send a message to the event processor and await a response.
Send an asynchronous message to the event processor
Handle a code change
Handle a synchronous event notification
Handle an asynchronous event notification
Handle incoming events
Handle an incoming message
Handle a subscription
Initialize event processor state
Start an EventProcessor process.
Synchronously notify the processor that an event has occurred. This call will block until the event has been consumed, or until the timeout is reached
Handle process termination
Link to this section Callbacks
handle_call(request :: term(), from :: GenServer.from(), state :: term()) :: {:reply, reply, new_state} | {:reply, reply, [event], new_state} | {:reply, reply, [event], new_state, :hibernate} | {:noreply, new_state} | {:noreply, [event], new_state} | {:noreply, [event], new_state, :hibernate} | {:stop, reason, reply, new_state} | {:stop, reason, new_state} when reply: term(), new_state: term(), reason: term(), event: term()