System.Threading.Tasks.Task.Wait Method

Waits for the System.Threading.Tasks.Task to complete execution within a specified time interval.

Syntax

public bool Wait (TimeSpan timeout)

Parameters

timeout
A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 milliseconds to wait indefinitely.

Returns

true if the System.Threading.Tasks.Task completed execution within the allotted time; otherwise, false.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Threading.Tasks
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0