RestartPolicy Type
When the supervisor restarts an exited child. In every case `Supervisor.StopWhen` and `Supervisor.MaxRestarts` can end supervision first.
Union cases
| Union case |
Description
|
Full Usage:
Always
|
Restart after every completed run, clean or not. |
Full Usage:
Never
|
Never restart: run the child once and report its outcome. |
Full Usage:
OnCrash
|
Restart only after a *crash* — a run that is not a success (`ProcessResult.IsSuccess` is false): a non-zero exit, a timeout, a signal kill, or a failure to spawn. A successful run (exit 0) ends supervision. |
Instance members
| Instance member |
Description
|
Full Usage:
this.IsAlways
Returns: bool
|
|
Full Usage:
this.IsNever
Returns: bool
|
|
Full Usage:
this.IsOnCrash
Returns: bool
|
|
ProcessKit API Reference