Instance Property

isRunning

Returns whether the receiver is still running.

Declaration

var isRunning: Bool { get }

Return Value

true if the receiver is still running, otherwise false. false means either the receiver could not run or it has terminated.

See Also

Querying the Task State

var terminationStatus: Int32

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

var terminationReason: Process.TerminationReason

Returns the reason the task was terminated.