TIdNotifyThreadEvent is an event type triggered when an Indy thread needs to receive an event notification. TIdNotifyThreadEvent is the event type used for the OnStopped event handler in
TIdThread. A procedure that accepts the Indy thread in AThread must be assigned for the event type to allow a response to the notification.