Logo ProcessKit API Reference

StopReason Type

Why supervision ended.

Union cases

Union case Description

GaveUp

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.

PolicySatisfied

Full Usage: PolicySatisfied

The `RestartPolicy` was satisfied — a clean exit under `OnCrash`, or the single `Never` run completing.

Predicate

Full Usage: Predicate

The `Supervisor.StopWhen` predicate matched a run.

RestartsExhausted

Full Usage: RestartsExhausted

The `Supervisor.MaxRestarts` budget ran out while the policy still wanted another restart.

Instance members

Instance member Description

this.IsGaveUp

Full Usage: this.IsGaveUp

Returns: bool
Returns: bool

this.IsPolicySatisfied

Full Usage: this.IsPolicySatisfied

Returns: bool
Returns: bool

this.IsPredicate

Full Usage: this.IsPredicate

Returns: bool
Returns: bool

this.IsRestartsExhausted

Full Usage: this.IsRestartsExhausted

Returns: bool
Returns: bool

Type something to start searching.