Re: -getTasksWithCompletionHandler: synchronization
Re: -getTasksWithCompletionHandler: synchronization
- Subject: Re: -getTasksWithCompletionHandler: synchronization
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Tue, 24 Feb 2015 11:26:35 +0000
On 23 Feb 2015, at 23:38, Rick Mann <email@hidden> wrote:
> Can I rely on not getting any other background task notifications while my block is executing?
If you configure the delegate queue for your session to be a serial queue [1], you can rely on there only being one block of code running on that queue at a time.
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
[1] In NSOperationQueue terms this means that maxConcurrentOperationCount is 1.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden