respawn#
Respawning the worker's process is accomplished using the respawn
method. The supervisor receives the exception, and initiates a new worker process instead. The method can be used to kill the current worker process and spawn a new one. It can be used to restart a process after it has entered an irrecoverable state (e.g. a memory leak).
Definition#
1 2 3 |
|
Examples#
1 2 3 4 5 6 7 8 9 10 |
|