Topic Path: Symbol Reference > Classes > TIdNotify Class > TIdNotify Methods > WaitFor Method
TIdNotify.WaitFor Method

Pauses until the notification object has completed execution.

procedure WaitFor;

WaitFor is a procedure that forces the TIdNotify instance to wait until the threaded notification list has a chance to execute the object instance. 

WaitFor examines the notification list in the global variable GNotifyThread. If the current object instance is present in the notification list, the method waits for 10ms (milliseconds) and rechecks for the current object until is has been completed and freed. 

WaitFor is used when the notification thread is executing, and during finalization for the Indy library.


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