Operation
extension Operation
-
Returns the
Operation
name or its type if the name is nil.Declaration
Swift
public var operationName: String { get }
-
Returns
true
if at least one dependency has been cancelled.Declaration
Swift
public var hasSomeCancelledDependencies: Bool { get }
-
Adds multiple dependencies to the operation. If the receiver is already executing its task, adding dependencies has no practical effect.
Declaration
Swift
public func addDependencies(_ dependencies: [Operation])
-
Adds multiple dependencies to the operation. If the receiver is already executing its task, adding dependencies has no practical effect.
Declaration
Swift
public func addDependencies(_ dependencies: Operation...)
-
Removes all the dependencies.
Declaration
Swift
public func removeDependencies()