Instance Property

dependencies

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

Declaration

@property(readonly, copy) NSArray<NSOperation *> *dependencies;

Discussion

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

- addDependency:

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

- removeDependency:

Removes the receiver’s dependence on the specified 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