event v0.2.0 Event.Adapter
Acts as an event sink, sending all incoming events as messages to the provided process. Useful when you have a process that should receive events but cannot act as an event sink or GenStage.
The adapter process will monitor the receiver process and exit when it does.
Link to this section Summary
Functions
Handle a code change
Handle a synchronous call
Handle an asynchronous cast
Handle incoming events from an upstream producer
Default handler for incoming messages.
Default initializer function
Start an Event Sink
Start an Event Adapter that will receive events from the given source GenStage and send them as messages to the receiver pid provided
Start an Event Sink
Callback implementation for Event.Sink.terminate/2
.
Link to this section Functions
code_change(old_version, state, extra)
Handle a code change
handle_call(call, from, state)
Handle a synchronous call
handle_cast(cast, state)
Handle an asynchronous cast
handle_events(events, from, state)
Handle incoming events from an upstream producer
handle_info(arg1, state)
Default handler for incoming messages.
init(args)
Default initializer function
start_link()
Start an Event Sink
start_link(source, receiver)
Start an Event Adapter that will receive events from the given source GenStage and send them as messages to the receiver pid provided
start_link(module, args, opts)
Start an Event Sink
terminate(reason, state)
Callback implementation for Event.Sink.terminate/2
.