Supervisors
August 22, 2023 1 minutes • 59 words
Table of contents
Elixir Supervisors
- restarts child processes when they fail
Strategies
:one_for_one
If a child terminates, only that process is restarted.
:one_for_all
If a child terminates, all other children are terminated. Then all children (including the terminated one) are restarted.
:rest_for_one
If a child terminates, the terminated child and the rest of the children started after it, are terminated and restarted.