• 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
Is it necessary to suspend/resume a dispatch queue/source on sleep/wake notifications?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is it necessary to suspend/resume a dispatch queue/source on sleep/wake notifications?


  • Subject: Is it necessary to suspend/resume a dispatch queue/source on sleep/wake notifications?
  • From: Matt DeFoor via Cocoa-dev <email@hidden>
  • Date: Thu, 6 Feb 2020 12:15:31 -0500

Does anyone know if it is necessary to dispatch_suspend/resume a queue or
source when sleep/wake notifications triggered in a macOS app?

I've read the docs and done some searching but couldn't find anything
definitive other than the concurrency programming guide states that all
timer dispatch sources are suspended when a computer goes to sleep. When
the computer wakes up, they are woken up as well.

Thanks,
Matt
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Is it necessary to suspend/resume a dispatch queue/source on sleep/wake notifications?
      • From: Jens Alfke via Cocoa-dev <email@hidden>
  • Prev by Date: How to present a web view while supporting 10.9?
  • Next by Date: Re: Is it necessary to suspend/resume a dispatch queue/source on sleep/wake notifications?
  • Previous by thread: How to present a web view while supporting 10.9?
  • Next by thread: Re: Is it necessary to suspend/resume a dispatch queue/source on sleep/wake notifications?
  • Index(es):
    • Date
    • Thread