My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 124: GDataServiceTicket will not call completion handler if called from the GCD global queue.
3 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by benjamin...@gmail.com, Dec 1, 2011
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.

TANTestGDataViewController.h
742 bytes   View   Download
TANTestGDataViewController.m
4.8 KB   View   Download
TANTestGDataViewController.xib
12.2 KB   Download
Dec 1, 2011
#1 benjamin...@gmail.com
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.
Dec 1, 2011
Project Member #2 grobb...@google.com
See https://code.google.com/p/gtm-http-fetcher/wiki/GTMHTTPFetcherIntroduction#Fetching_from_Secondary_Threads

We'll look at adding support for delegates on a queue independent of run loop modes.
Sign in to add a comment

Powered by Google Project Hosting