Flexflow.EventDispatcher (flexflow v0.2.0) View Source

EventDispatcher

Link to this section Summary

Functions

Examples

iex> Elixir.Flexflow.EventDispatcher.child_spec([:a, :b, :c])
%{
  id: Elixir.Flexflow.EventDispatcher,
  start: {Registry, :start_link, [[keys: :duplicate, name: Elixir.Flexflow.EventDispatcher]]},
  type: :supervisor
}

Link to this section Types

Specs

entry() :: term()

Specs

key() :: term()

Specs

listen_result() :: :wait | :ok

Specs

listener() :: {key(), entry()}

Link to this section Functions

Examples

iex> Elixir.Flexflow.EventDispatcher.child_spec([:a, :b, :c])
%{
  id: Elixir.Flexflow.EventDispatcher,
  start: {Registry, :start_link, [[keys: :duplicate, name: Elixir.Flexflow.EventDispatcher]]},
  type: :supervisor
}

Specs

init_register_all(Flexflow.Process.t()) :: Flexflow.Process.result()
Link to this function

process_register(p, arg)

View Source

Specs

Specs

register(key(), entry()) ::
  {:ok, pid()} | {:error, {:already_registered, pid()}}