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)

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.

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