Is it necessary to suspend/resume a dispatch queue/source on sleep/wake notifications?
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