Internet Direct (Indy) Version 9.0.1 Beta
TIdLocalEvent.WaitFor
Waits until another thread turns on the signal of the event object.

function WaitFor: TWaitResult; overload;
Returns
TWaitResult - The resulting signal state.

Description
WaitFor is a TWaitResult function that waits until the signal of the event object is turned on. WaitFor will indefinitely until the event is signalled. WaitFor returns one of the following TWaitResult values:

Check the LastError property for an error code giving more information.