CLASS TaskExtensions

Helper extension for Task.WhenAll with IEnumerable

Public Methods

WhenAll

public static Task WhenAll(Task[] tasks)

Creates a task that completes when all of the provided tasks have completed.

Parameters:

  • tasks (Task[]): An array of tasks to wait on for completion.

Returns: Task

  • A task that represents the completion of all the provided tasks.