Cizen v0.11.1 Cizen.FilterDispatcher View Source

A dispatcher based on subscription with filter set.

Cizen.DefaultEventRouter is used for event routing. You can customize this in a config:

use Mix.Config
config :cizen, event_router: YourEventRouter

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function listen(event_filter, lifetime_pids \\ []) View Source
listen(Cizen.Filter.t(), lifetime_pids :: [pid()]) :: :ok

listen event filter.

Link to this function listen_with_meta(event_filter, meta, lifetime_pids \\ []) View Source
listen_with_meta(Cizen.Filter.t(), meta :: term(), lifetime_pids :: [pid()]) ::
  :ok

listen event filter with meta.