"A notification center delivers notifications to observers synchronously. In other words, when posting a notification, control does not return to the poster until all observers have received and processed the notification."
Therefore, is it safe to block in a NSNotification handler registered with the default NSNotificationCenter for a system notification? (ex. AVAudioSessionInterruptionNotification)
There’s no simple yes or no answer here. It depends on the context in which the notification was posted and what locks are involved. For example, doing sync/blocking file I/O is unlikely to cause problems, but calling back into the subsystem that posted the notification could well get you into trouble.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"