title: Close a window without waiting for NotificationCenter post to complete Cocoa Swift
body: <p>Just before calling <code>self.window?.close()</code> I am posting a notification with <code>NotificationCenter.default.post(name: Notification.Name(&quot;frameCaptured&quot;), object: nil)</code>. The Notification's selector may take some time to complete. So I want to close the window even if the selector is not complete. Is this possible or I should approach this another way?</p>