Task::WaitAny Method
.NET Framework (current version)
Waits for any of the provided Task objects to complete execution.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | WaitAny(array<Task^>^) | Waits for any of the provided Task objects to complete execution. |
![]() ![]() | WaitAny(array<Task^>^, CancellationToken) | Waits for any of the provided Task objects to complete execution unless the wait is cancelled. |
![]() ![]() | WaitAny(array<Task^>^, Int32) | Waits for any of the provided Task objects to complete execution within a specified number of milliseconds. |
![]() ![]() | WaitAny(array<Task^>^, Int32, CancellationToken) | Waits for any of the provided Task objects to complete execution within a specified number of milliseconds or until a cancellation token is cancelled. |
![]() ![]() | WaitAny(array<Task^>^, TimeSpan) | Waits for any of the provided Task objects to complete execution within a specified time interval. |
Show:

