Waits for all of the provided cancellable System.Threading.Tasks.Task objects to complete execution within a specified time interval.
- tasks
- An array of System.Threading.Tasks.Task instances on which to wait.
- timeout
- A TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 milliseconds to wait indefinitely.
true if all of the System.Threading.Tasks.Task instances completed execution within the allotted time; otherwise, false.
The cancellationToken argument is used to cancel the wait operation. If it is canceled, the Wait returns false (False in Visual Basic). Cancellation of the tasks is a distinct operation, and is signaled by the AggregateException as noted above.