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 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

Link to this function

code_change(old_version, state, extra)

Handle a code change

Link to this function

handle_call(call, from, state)

Handle a synchronous call

Link to this function

handle_cast(cast, state)

Handle an asynchronous cast

Link to this function

handle_events(events, from, state)

Handle incoming events from an upstream producer

Link to this function

handle_info(arg1, state)

Default handler for incoming messages.

Default initializer function

Start an Event Sink

Link to this function

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

Link to this function

start_link(module, args, opts)

Start an Event Sink

Link to this function

terminate(reason, state)

Callback implementation for Event.Sink.terminate/2.