Internet Direct (Indy) Version 9.0.2 Beta
TIdThread.TerminateAndWaitFor
Signals a TIdThread to terminate and waits for it to finish by exiting the Execute method.

procedure TerminateAndWaitFor; virtual;
Description
TerminateAndWaitFor calls the inherited Terminate method, sets Stopped to True, and calls the inherited WaitFor method.

Unlike WaitFor in the ancestor TThread class, the value returned from WaitFor is not used.