NSThreadWillExit
An NSThread object posts this notification when it receives the Exit() message, before the thread exits. Observer methods invoked to receive this notification execute in the exiting thread, before it exits.
Declaration
static let NSThreadWillExit: NSNotification.NameDiscussion
The notification object is the exiting NSThread object. This notification does not contain a userInfo dictionary.