On Oct 8, 2014, at 11:59 AM, Jens Alfke <j...@mooseyard.com> wrote: > * Now, how does queue A wait for the callback? It seems to be impossible: the > only way for code running on queue A to receive the callback is to return > back to the queue dispatcher, so if it tries to wait it simply blocks the > queue, causing a deadlock. > … > But given that dispatch queues can't do this, what's the solution to this > design problem, i.e. turning an async call into a sync one?
Simply performing the rest of the task in the callback is one way. -- Seth Willits _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com