add(_:)
Adds an operation to the container’s queue.
Declaration
func add(_ operation: CKOperation)Parameters
- operation:
The operation to add to the queue. Make sure you fully configure the operation and have it ready to execute. Don’t change the operation’s configuration after you queue it.
Discussion
This method adds the operation to a queue that the container manages. The queue’s operations execute on background threads concurrently, and with default priorities. When you add an operation to the queue, its container becomes the current container.