CloudKit convenience methods completion handlers threads

Originator:george
Number:rdar://17589256 Date Originated:08-Jul-2014 10:27 AM
Status:Closed Resolved:NO
Product:CloudKit Product Version:
Classification: Reproducible:Always
 
Summary:
Shouldn't the completion handlers of CloudKit convenience methods be called on the same thread of the methods that instantiated them?

Scenario: Save a record to CloudKit using CKDatabase saveRecord:completionHandler: on the completion handler reload a tableview.  Since the completion handler isn't called on the main thread (it's actually called on the com.apple.cloudkit.operation.callback queue), strange things happen.

Steps to Reproduce:


Expected Results:
Call the completion handler on the same thread that the convenience method was invoked.

Actual Results:


Version:
iOS Beta 3 with XCode 6 beta 3. Both device and simulators.

Notes:


Configuration:


Attachments:


Engineering has determined that there are no plans to address this based on the following:

Completion handlers can be called on any thread/queue. It is the responsibility of the caller to send them to a specific queue if necessary.

Please let us know whether that helps you resolve the issue.

Please be sure to regularly check new Apple releases for any updates that might affect this issue.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!