Yggdrasil v5.0.0 Yggdrasil.Publisher View Source
Publisher pool of processes.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Publishes message
in a channel
with some optional options
.
Starts a pool of publisher adapters using the information of a channel
.
Additionally can receive Supervisor
options
.
Stops the supervisor
.
Link to this section Functions
Link to this function
child_spec(init_arg) View Source
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
publish(channel, message, options \\ [])
View Source
publish(channel, message, options \\ [])
View Source
publish(Yggdrasil.Channel.t(), term(), Keyword.t()) :: :ok | {:error, term()}
publish(Yggdrasil.Channel.t(), term(), Keyword.t()) :: :ok | {:error, term()}
Publishes message
in a channel
with some optional options
.
Link to this function
start_link(channel, options \\ [])
View Source
start_link(channel, options \\ [])
View Source
start_link(Yggdrasil.Channel.t(), Supervisor.options()) :: Supervisor.on_start()
start_link(Yggdrasil.Channel.t(), Supervisor.options()) :: Supervisor.on_start()
Starts a pool of publisher adapters using the information of a channel
.
Additionally can receive Supervisor
options
.
Link to this function
stop(supervisor)
View Source
stop(supervisor)
View Source
stop(Supervisor.supervisor()) :: :ok
stop(Supervisor.supervisor()) :: :ok
Stops the supervisor
.