Yggdrasil.Subscriber.Generator (Yggdrasil v6.0.0) 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.
Specs
start_link([DynamicSupervisor.option() | DynamicSupervisor.init_option()]) :: Supervisor.on_start()
Starts a distributor generator with Supervisor options.
Specs
stop(Supervisor.supervisor()) :: :ok
Stops a distributor generator.
Specs
subscribe(Yggdrasil.Channel.t(), nil | pid(), keyword()) :: :ok | {:error, term()}
Makes a pid subscribe to a channel.
Specs
unsubscribe(Yggdrasil.Channel.t(), nil | pid()) :: :ok | {:error, term()}
Makes a pid unsubscribe from a channel.