yggdrasil v2.0.0 Yggdrasil.Publisher.Generator

Supervisor to generate publisher supervisors on demand.

Summary

Functions

Starts a generator supervisor with Supervisor options

Starts a publisher using a generator supervisor and a channel

Stops a generator with a reason. By default is reason is :normal

Stops a publisher using a channel. By default the reason to stop the publisher is :normal

Functions

start_link(options \\ [])

Starts a generator supervisor with Supervisor options.

start_publisher(generator, channel)

Starts a publisher using a generator supervisor and a channel.

stop(generator, reason \\ :normal)

Stops a generator with a reason. By default is reason is :normal.

stop_publisher(channel, reason \\ :normal)

Stops a publisher using a channel. By default the reason to stop the publisher is :normal.