Instance Method

addOperation:

Queues an operation for execution in the current container.

Declaration

- (void)addOperation:(CKOperation *)operation;

Parameters

operation

The CKOperation to enqueue. Make sure the operation object you provide is fully configured and ready to be enqueued. Do not change the settings of this object after calling this method.

Discussion

This method adds the operation object to an operation queue managed by the container itself. Operation objects in the container’s queue execute concurrently with default priorities in background threads.

This method changes the operation object’s container (if any) to the current container.