tianshanxuester / gdata-objectivec-client

Automatically exported from code.google.com/p/gdata-objectivec-client
Other
0 stars 0 forks source link

GDataServiceTicket will not call completion handler if called from the GCD global queue. #124

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Set up a data call to run on a the GCD global queue (see attached file)

What is the expected output? What do you see instead?

I expect the completionHandler passed to the fetchFeedWithURL:completionHandler 
function to be called when the data call returns.

The example I have provided demonstrates this issue.  If you run it, you will 
see the normal data call return, but the completion block for the global queue 
version is never called.

What version of the product are you using? On what operating system?

Revision 712.  Running Xcode 4.2 Build 4C199, on Mac OS X 10.6.8

Please provide any additional information below.

N/A.

Original issue reported on code.google.com by benjamin...@gmail.com on 1 Dec 2011 at 7:39

Attachments:

GoogleCodeExporter commented 9 years ago
I am able to work around this issue by only ever calling the 
fetchFeedWithURL:completionHandler from the main queue, but this still seems 
like a bug to me.

Cheers,
Ben.

Original comment by benjamin...@gmail.com on 1 Dec 2011 at 7:50

GoogleCodeExporter commented 9 years ago
See 
http://code.google.com/p/gtm-http-fetcher/wiki/GTMHTTPFetcherIntroduction#Fetchi
ng_from_Secondary_Threads

We'll look at adding support for delegates on a queue independent of run loop 
modes.

Original comment by grobb...@google.com on 1 Dec 2011 at 8:18