Instance Property


An array of the operation objects that must finish executing before the current object can begin executing.


var dependencies: [Operation] { get }


This property contains an array of NSOperation objects. To add an object to this array, use the addDependency(_:) method.

An operation object must not execute until all of its dependent operations finish executing. Operations are not removed from this dependency list as they finish executing. You can use this list to track all dependent operations, including those that have already finished executing. The only way to remove an operation from this list is to use the removeDependency(_:) method.

See Also

Managing Dependencies

func addDependency(Operation)

Makes the receiver dependent on the completion of the specified operation.

func removeDependency(Operation)

Removes the receiver’s dependence on the specified operation.