CKQueryOperation visibility, cancellation, and timeout features

My application should start CKQueryOperation using CKDatabase. This requires access to a network that is not always available.

As soon as I add CKQueryOperation to CKDatabase, where my control stops.

Is there any way:

  • See all pending operations related to the CKD database.
  • Cancel operation when Ive added it to CKDatabase?
  • Set completion timeout so the operation does not remain pending if the network impedes completion?

I know I can do this with CKDatabase performQuery, however I would prefer to use operations, if possible, in advance for your help!

+4
source share

Source: https://habr.com/ru/post/1608893/


All Articles