Instance Property

terminationReason

Returns the reason the task was terminated.

Declaration

var terminationReason: Process.TerminationReason { get }

Return Value

The termination status. The possible values are described in Process.TerminationReason.

See Also

Querying the Task State

var isRunning: Bool

Returns whether the receiver is still running.

var terminationStatus: Int32

Returns the exit status returned by the receiver’s executable.