Electric.CoreSupervisor (electric v1.2.4)
View SourceA supervisor that starts the core components of the Electric system. This is divided into two subsystems:
- The connection subsystem (processes that may exit on a connection failure), started with Connection.Supervisor
- The shape subsystem (processes that are resilient to connection failures), started with Shapes.Supervisor
Summary
Functions
Returns a specification to start this module under a supervisor.
This function is supposed to be called from Connection.Manager at the right point in its initialization sequence.
Stops the Shapes.Supervisor if it's currently running.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
This function is supposed to be called from Connection.Manager at the right point in its initialization sequence.
Stops the Shapes.Supervisor if it's currently running.
This is useful when you need to reset storage before starting a new supervisor. Returns :ok if the supervisor was stopped or wasn't running.