recordFetchedBlock concurrency

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

Accepted Reply

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.

Replies

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.