AsyncTaskBaseWait Method

Waits for the task to complete, with a specified timeout. This method blocks the calling thread until the task is completed or the specified timeout has elapsed, whichever comes first.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public bool Wait(
	int millisecondsTimeout
)

Parameters

millisecondsTimeout  Int32
The number of milliseconds to wait, or Infinite (-1) to wait indefinitely.

Return Value

Boolean
if the task completed within the specified timeout; otherwise, .

See Also