Type Property

current

Returns the operation queue that launched the current operation.

Declaration

class var current: OperationQueue? { get }

Return Value

The operation queue that started the operation or nil if the queue could not be determined.

Discussion

You can use this method from within a running operation object to get a reference to the operation queue that started it. Calling this method from outside the context of a running operation typically results in nil being returned.

See Also

Accessing Specific Operation Queues

class var main: OperationQueue

Returns the operation queue associated with the main thread.

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