Internet Direct (Indy)
Home
PreviousUpNext
TIdLocalEvent.WaitForEver Method

Waits until another thread signals the event object.

Pascal
function WaitForEver: TWaitResult; overload;

TWaitResult - The resulting signal state for the event.

WaitForEver is a TWaitResult function that waits until the signal for the event object is turned on. WaitForEver will pause until the event is signalled. 

WaitForEver returns one of the following TWaitResult values: 

 

Value 
Meaning 
wrSignaled 
The signal of the event object was set. 
wrAbandoned 
The event object was destroyed before the event was signalled. 
wrError 
An error occurred while waiting. 
wrTimeout 
A timeout occurred before the event was signalled. 

 

Use the LastError property for an error code giving detailed information about the result.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.