1 Reply
      Latest reply on Sep 19, 2016 6:07 AM by pdm
      yvsong Level 1 Level 1 (0 points)

        When multiple records are fetched, are the recordFetchedBlock's of CKQueryOperation executed concurrently (on multiple threads), or sequentially on 1 thread?

        • Re: recordFetchedBlock concurrency
          pdm Apple Staff Apple Staff (1,770 points)

          It's always safest to assume that callbacks could be invoked on multiple concurrent queues.  If you need to do work that has to be performed on a single queue, it might be best to manage a private serial queue and then you can dispatch blocks to it as your recordFetchedBlock handler is called.