Dust.SubscriberRegistrar (dustlayer v0.1.1)

Copy Markdown View Source

One-off GenServer that starts last in the supervision tree and registers all declared Dust.Subscriber modules with their respective SyncEngines.

This exists because subscriber registration needs the SyncEngines to be running, but the Supervisor hasn't started its children yet during init/1. By placing the registrar last in the children list, we guarantee all SyncEngines are up before registration runs.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)