System.Threading.Tasks.Task.WaitAll Method

Waits for all of the provided System.Threading.Tasks.Task objects to complete execution within a specified number of milliseconds.

Syntax

public static bool WaitAll (Task[] tasks, int millisecondsTimeout)

Parameters

tasks
An array of System.Threading.Tasks.Task instances on which to wait.
millisecondsTimeout
The number of milliseconds to wait, or System.Threading.Timeout.Infinite (-1) to wait indefinitely.

Returns

true if all of the System.Threading.Tasks.Task instances 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