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

start_child(program_name)

Specs

Starts a Cure.Server process that is monitored by the Cure.Supervisor process.

start_link()

Specs

start_link :: Supervisor.on_start

Starts a Cure.Supervisor process (registered as Cure.Supervisor).

terminate_child(server_pid)

Specs

terminate_child(pid) :: :ok | {:error, term}

Terminates a Cure.Server process.

terminate_children()

Specs

terminate_children :: [:ok | {:error, term}]

Terminates all supervised Cure.Server processes.