cure v0.5.0 Cure.Supervisor
The supervisor is responsible for monitoring Cure.Server processes. Can be optionally left out by starting a Cure.Server process directly.
Summary
Functions
Starts a Cure.Server process that is monitored by the Cure.Supervisor process
Starts a Cure.Supervisor process (registered as Cure.Supervisor)
Terminates a Cure.Server process
Terminates all supervised Cure.Server processes
Functions
Specs
start_child(String.t) :: Supervisor.on_start_child
Starts a Cure.Server process that is monitored by the Cure.Supervisor process.
Specs
start_link :: Supervisor.on_start
Starts a Cure.Supervisor process (registered as Cure.Supervisor).
Specs
terminate_child(pid) :: :ok | {:error, term}
Terminates a Cure.Server process.