Instance Property

isExecuting

A Boolean value indicating whether the operation is currently executing.

Declaration

var isExecuting: Bool { get }

Discussion

The value of this property is true if the operation is currently executing its main task or false if it is not.

When implementing a concurrent operation object, you must override the implementation of this property so that you can return the execution state of your operation. In your custom implementation, you must generate KVO notifications for the isExecuting key path whenever the execution state of your operation object changes. For more information about manually generating KVO notifications, see Key-Value Observing Programming Guide.

You do not need to reimplement this property for nonconcurrent operations.

See Also

Getting the Operation Status

var isCancelled: Bool

A Boolean value indicating whether the operation has been cancelled

var isFinished: Bool

A Boolean value indicating whether the operation has finished executing its task.

var isConcurrent: Bool

A Boolean value indicating whether the operation executes its task asynchronously.

var isAsynchronous: Bool

A Boolean value indicating whether the operation executes its task asynchronously.

var isReady: Bool

A Boolean value indicating whether the operation can be performed now.

var name: String?

The name of the operation.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software