Task::WaitAny Method

 

Waits for any of the provided Task objects to complete execution.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticWaitAny(array<Task^>^)

Waits for any of the provided Task objects to complete execution.

System_CAPS_pubmethodSystem_CAPS_staticWaitAny(array<Task^>^, CancellationToken)

Waits for any of the provided Task objects to complete execution unless the wait is cancelled.

System_CAPS_pubmethodSystem_CAPS_staticWaitAny(array<Task^>^, Int32)

Waits for any of the provided Task objects to complete execution within a specified number of milliseconds.

System_CAPS_pubmethodSystem_CAPS_staticWaitAny(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.

System_CAPS_pubmethodSystem_CAPS_staticWaitAny(array<Task^>^, TimeSpan)

Waits for any of the provided Task objects to complete execution within a specified time interval.

Return to top
Show: