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

start_child(program_name)

Specs:

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

start_link()

Specs:

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.