System.Threading.Tasks.TaskFactory.ContinueWhenAny Method

Creates a continuation System.Threading.Tasks.Task that will be started upon the completion of any Task in the provided set.

Syntax

public Task ContinueWhenAny (Task[] tasks, Action<Task> continuationAction, System.Threading.CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)

Parameters

tasks
The array of tasks from which to continue when one task completes.
continuationAction
The action delegate to execute when one task in the tasks array completes.
cancellationToken
The System.Threading.CancellationToken that will be assigned to the new continuation task.
continuationOptions
The System.Threading.Tasks.TaskContinuationOptions value that controls the behavior of the created continuation System.Threading.Tasks.Task.
scheduler
The System.Threading.Tasks.TaskScheduler that is used to schedule the created continuation System.Threading.Tasks.Task.

Returns

The new continuation System.Threading.Tasks.Task.

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