Cizen.Dispatcher (Cizen v0.18.1) View Source

The dispatcher.

Link to this section Summary

Functions

Dispatch the event.

Listen events with the given event filter.

Listen events with the given event filter for the given saga ID.

Listen all events.

Listen the specific event type.

Link to this section Functions

Specs

dispatch(Cizen.Event.t()) :: :ok

Dispatch the event.

Listen events with the given event filter.

Link to this function

listen(subscriber, pattern)

View Source

Listen events with the given event filter for the given saga ID.

Specs

listen_all() :: :ok

Listen all events.

Link to this function

listen_event_type(event_type)

View Source

Specs

listen_event_type(module()) :: :ok

Listen the specific event type.