thread WaitTimeout property
Return to Introduction  Previous page  Next page
Applies to
auThread and auHTTP components.  

property WaitTimeout: Integer;  

The WaitTimeout property specifies the time interval (limit), in milliseconds unit, which application able to wait until the thread will be terminated.  
For example, if the maximum time which you can allow for execution of this thread is 5 seconds, set this value to 5000 (milliseconds). If application can wait infinitely, set WaitTimeout to 0.  
iiinfo When the timeout is expired, the component automatically terminates the HTTP request. To be notified when the WaitTimeout is expired — write OnWaitTimeoutExpired event handler.  

The WaitTimeout only works together with WaitThread property, only when it set to True.  

See also
WaitThread, ThreadPriority and Suspended properties;  
Execute and Execute methods;  
OnWaitTimeoutExpired event.