Logo ProcessKit API Reference

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

Always

Full Usage: Always

Restart after every completed run, clean or not.

Never

Full Usage: Never

Never restart: run the child once and report its outcome.

OnCrash

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

this.IsAlways

Full Usage: this.IsAlways

Returns: bool
Returns: bool

this.IsNever

Full Usage: this.IsNever

Returns: bool
Returns: bool

this.IsOnCrash

Full Usage: this.IsOnCrash

Returns: bool
Returns: bool

Type something to start searching.