Show: Delphi C++
Display Preferences

System.Threading.ITask.Wait

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Wait(Timeout: LongWord = 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.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance