System.Threading.ITask.Wait
Delphi
function Wait(Timeout: Cardinal = INFINITE): Boolean; overload;
function Wait(const Timeout: TTimeSpan): Boolean; overload;
C++
virtual bool __fastcall Wait(unsigned Timeout = (unsigned)(0xffffffff)) = 0 /* overload */;
virtual bool __fastcall Wait(const System::Timespan::TTimeSpan &Timeout) = 0 /* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Threading.pas System.Threading.hpp |
System.Threading | ITask |
Description
Use Wait to have the calling thread for the task to either complete or for the timeout period to elapse.
If the timeout period elapses before the task completes, Wait returns False, otherwise True is returned.