recordFetchedBlock concurrency

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

Answered by Documentation Engineer in 180600022

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.

Accepted Answer

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.

recordFetchedBlock concurrency
 
 
Q