Topic Path: Symbol Reference > Classes > TIdLocalEvent Class > TIdLocalEvent Methods > WaitForEver Method
ContentsIndexHome
PreviousUpNext
TIdLocalEvent.WaitForEver Method

Waits until another thread signals the event object.

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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.