Returns the running or recently completed long-lived operation specified by the operation identifier.
- iOS 9.3+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 9.2+
- watchOS 3.0+
The identifier of the long-lived operation you want to fetch.
A block that has no return value and takes the following parameters:
The proxy object for the corresponding long-lived operation. If a long-lived operation was canceled or completed, this is
An error object, or
nilif the fetch is successful.
A long-lived operation is an operation that continues to run after the app exits, described in
CKOperation. To receive the callbacks for a long-lived operations, set its completion block and add it to an operation queue.