yggdrasil v4.0.0 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

Callbacks

Callback to start a subscriber with a channel, a publisher and some GenServer options

Link to this section Functions

Use to implement Yggdrasil.Subscriber.Adapter behaviour.

Link to this function start_link(channel, publisher, options \\ []) View Source

Generic subscriber adapter starter that receives a channel, a publisher and an optional GenServer options.

Generic subscriber adapter stopper that receives the pid.

Link to this section Callbacks

Link to this callback start_link(channel, publisher, options) View Source
start_link(
  channel :: Yggdrasil.Channel.t(),
  publisher :: term(),
  options :: GenServer.options()
) :: GenServer.on_start()

Callback to start a subscriber with a channel, a publisher and some GenServer options.