Task.WhenAll method (1 of 4)

Creates a Task that will complete when all tasks in the specified enumerable collection have completed.

public static Task WhenAll(IEnumerable<Task> tasks)
parameter description
tasks The tasks to wait for completion.

Return Value

Task that represents the completion of all of the specified tasks.

See Also


Task.WhenAll method (2 of 4)

Creates a Task that will complete when all tasks in the specified array have completed.

public static Task WhenAll(params Task[] tasks)
parameter description
tasks The tasks to wait for completion.

Return Value

Task that represents the completion of all of the specified tasks.

See Also


Task.WhenAll<TResult> method (3 of 4)

Creates a Task that will complete when all tasks in the specified enumerable collection have completed.

public static Task<TResult[]> WhenAll<TResult>(IEnumerable<Task<TResult>> tasks)
parameter description
TResult The result type of the task.
tasks The tasks to wait for completion.

Return Value

Task that represents the completion of all of the specified tasks.

See Also


Task.WhenAll<TResult> method (4 of 4)

Creates a Task that will complete when all tasks in the specified array have completed.

public static Task<TResult[]> WhenAll<TResult>(params Task<TResult>[] tasks)
parameter description
TResult The result type of the task.
tasks The tasks to wait for completion.

Return Value

Task that represents the completion of all of the specified tasks.

See Also