yggdrasil v3.3.2 Yggdrasil.Distributor.Generator View Source

Supervisor to generate distributors on demand.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Starts a distributor generator with Supervisor options

Stops a distributor generator

Makes a pid subscribe to a channel

Makes a pid unsubscribe from a channel

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Starts a distributor generator with Supervisor options.

Stops a distributor generator.

Link to this function subscribe(channel, pid \\ nil, options \\ []) View Source
subscribe(Yggdrasil.Channel.t(), pid(), Keyword.t()) :: :ok | {:error, term()}

Makes a pid subscribe to a channel.

Link to this function unsubscribe(channel, pid \\ nil) View Source
unsubscribe(Yggdrasil.Channel.t(), pid()) :: :ok

Makes a pid unsubscribe from a channel.