When multiple records are fetched, are the recordFetchedBlock's of CKQueryOperation executed concurrently (on multiple threads), or sequentially on 1 thread?
recordFetchedBlock concurrency
Add a Comment
When multiple records are fetched, are the recordFetchedBlock's of CKQueryOperation executed concurrently (on multiple threads), or sequentially on 1 thread?
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.
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.