Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type config() :: %{ client: pid(), kind: :events | :signals | :jobs, events: MapSet.t(atom()), open_stream: (String.t() -> {:ok, Enumerable.t()} | {:error, term()}), decode: (struct() -> decode_result()), options: keyword() }
@type unsubscribe() :: (-> :ok)
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec close(pid()) :: :ok
@spec on(pid(), String.t(), atom(), function()) :: {:ok, unsubscribe()} | {:error, :invalid_event | :invalid_handler | :closed}
@spec start_link(config()) :: GenServer.on_start()