System.Threading.ITask.Wait

De RAD Studio API Documentation
Aller à : navigation, rechercher

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 */;

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.Threading.pas
System.Threading.hpp
System.Threading ITask


Description

Utilisez Wait pour que le thread appelant de la tâche se termine ou que la période timeout s'écoule.

Si la période timeout s'écoule avant que la tâche ne soit terminée, Wait renvoie False, sinon True est renvoyé.

Voir aussi