Introduce the Supervisor's Behavior
Let's introduce the supervisor's behavior.
We'll cover the following...
We'll cover the following...
Customize supervisor processes
Process supervision begins with the supervisor Behaviour. We’ll get an overview of it in this section. Over the next few sections, we’ll learn to customize supervisor processes. Then we’ll build a supervisor to monitor all the game processes in Islands.
Like GenServer
, supervisor is an Elixir Behaviour that wraps an OTP Behaviour. In this case, that is :supervisor
. Like GenServer
, we can also spawn new processes from supervisor modules. These supervisor processes start, monitor, restart, and stop other processes within an application.
We call any process under supervision a child process ...