Yggdrasil v5.0.2 Yggdrasil.Subscriber.Adapter behaviour View Source
Subscriber adapter behaviour.
Link to this section Summary
Functions
Use to implement Yggdrasil.Subscriber.Adapter
behaviour.
Generic subscriber adapter starter that receives a channel
, a publisher
and an optional GenServer
options.
Generic subscriber adapter stopper that receives the pid
and optional
reason
and timeout
.
Link to this section Functions
Use to implement Yggdrasil.Subscriber.Adapter
behaviour.
Link to this function
start_link(channel, options \\ [])
View Sourcestart_link(Yggdrasil.Channel.t(), GenServer.options()) :: GenServer.on_start()
Generic subscriber adapter starter that receives a channel
, a publisher
and an optional GenServer
options.
Link to this function
stop(pid, reason \\ :normal, timeout \\ :infinity)
View Sourcestop(pid() | GenServer.name(), term(), :infinity | pos_integer()) :: :ok
Generic subscriber adapter stopper that receives the pid
and optional
reason
and timeout
.
Link to this section Callbacks
Link to this callback
start_link(channel, options)
View Sourcestart_link(channel :: Yggdrasil.Channel.t(), options :: GenServer.options()) :: GenServer.on_start()
Callback to start a subscriber with a channel
, a publisher
and some
GenServer
options
.