• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: -getTasksWithCompletionHandler: synchronization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: -getTasksWithCompletionHandler: synchronization
      • From: Rick Mann <email@hidden>
References: 
 >-getTasksWithCompletionHandler: synchronization (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Reachability determination?
  • Next by Date: Re: Reachability determination?
  • Previous by thread: -getTasksWithCompletionHandler: synchronization
  • Next by thread: Re: -getTasksWithCompletionHandler: synchronization
  • Index(es):
    • Date
    • Thread