Cure.Supervisor
The supervisor is responsible for monitoring Cure.Server processes. Can be optionally left out by starting a Cure.Server process directly.
Summary↑
start_child(program_name) | Starts a Cure.Server process that is monitored by the Cure.Supervisor process |
start_link() | Starts a Cure.Supervisor process (registered as Cure.Supervisor) |
terminate_child(server_pid) | Terminates a Cure.Server process |
terminate_children() | 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.
Specs:
- terminate_children :: [:ok | {:error, term}]
Terminates all supervised Cure.Server processes.