System.Threading.Tasks.TaskFactory.ContinueWhenAll Method

Creates a continuation task that starts when a set of specified tasks has completed.

Syntax

public Task ContinueWhenAll (Task[] tasks, Action<Task[]> continuationAction, System.Threading.CancellationToken cancellationToken)

Parameters

tasks
The array of tasks from which to continue.
continuationAction
The action delegate to execute when all tasks in the tasks array have completed.
cancellationToken
The cancellation token to assign to the new continuation task.

Returns

The new continuation task.

Remarks

The TaskFactory.ContinueWhenAll(Task[], Action<System.Threading.Tasks.Task[]>,System.Threading.CancellationToken) method executes the continuationAction delegate when all tasks in the tasks array have completed, regardless of their completion status.

Requirements

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