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