StopReason Type
Why supervision ended.
Union cases
| Union case |
Description
|
Full Usage:
GaveUp
|
The `Supervisor.GiveUpWhen` classifier recognized a crash as *permanent* — the supervisor stopped instead of restarting it forever. Only reported for a crashed run that produced a `ProcessResult` (the classifier still receives that crash's `ProcessError` projection, via `ProcessResult.FailureError`); a permanent failure that never produced a result (a spawn/IO failure the classifier also recognizes) has no result to report and instead surfaces directly as `RunAsync`'s `Error`, same as an exhausted budget on that path. |
Full Usage:
PolicySatisfied
|
The `RestartPolicy` was satisfied — a clean exit under `OnCrash`, or the single `Never` run completing. |
Full Usage:
Predicate
|
The `Supervisor.StopWhen` predicate matched a run. |
Full Usage:
RestartsExhausted
|
The `Supervisor.MaxRestarts` budget ran out while the policy still wanted another restart. |
Instance members
| Instance member |
Description
|
Full Usage:
this.IsGaveUp
Returns: bool
|
|
Full Usage:
this.IsPolicySatisfied
Returns: bool
|
|
Full Usage:
this.IsPredicate
Returns: bool
|
|
Full Usage:
this.IsRestartsExhausted
Returns: bool
|
|
ProcessKit API Reference