MultiTasks by André N. Klingsheim

<PackageReference Include="MultiTasks" Version="0.0.2-23.valuetasks" />

.NET API 15,360 bytes

 MultiTask

public static class MultiTask
Provides support for awaiting multiple tasks and more conventient handling of return values and exceptions.
public static Task WhenAll(Task[] tasks)

Creates a task that will complete when all of the Task objects have completed.

public static Task<T> WhenAll<T>(Task<T> t, Task[] otherTasks)

Creates a task that will complete when all of the Task<T> and Task objects have completed.

public static Task<ValueTuple<T, T2>> WhenAll<T, T2>(Task<T> t1, Task<T2> t2, Task[] otherTasks)

Creates a task that will complete when all of the Task<T> and Task objects have completed.

public static Task<ValueTuple<T, T2, T3>> WhenAll<T, T2, T3>(Task<T> t1, Task<T2> t2, Task<T3> t3, Task[] otherTasks)

Creates a task that will complete when all of the Task<T> and Task objects have completed.

public static Task<ValueTuple<T, T2, T3, T4>> WhenAll<T, T2, T3, T4>(Task<T> t1, Task<T2> t2, Task<T3> t3, Task<T4> t4, Task[] otherTasks)

Creates a task that will complete when all of the Task<T> and Task objects have completed.

public static Task<ValueTuple<T, T2, T3, T4, T5>> WhenAll<T, T2, T3, T4, T5>(Task<T> t1, Task<T2> t2, Task<T3> t3, Task<T4> t4, Task<T5> t5, Task[] otherTasks)

Creates a task that will complete when all of the Task<T> and Task objects have completed.

public static Task<ValueTuple<T, T2, T3, T4, T5, T6>> WhenAll<T, T2, T3, T4, T5, T6>(Task<T> t1, Task<T2> t2, Task<T3> t3, Task<T4> t4, Task<T5> t5, Task<T6> t6, Task[] otherTasks)

Creates a task that will complete when all of the Task<T> and Task objects have completed.

public static Task<ValueTuple<T, T2, T3, T4, T5, T6, T7>> WhenAll<T, T2, T3, T4, T5, T6, T7>(Task<T> t1, Task<T2> t2, Task<T3> t3, Task<T4> t4, Task<T5> t5, Task<T6> t6, Task<T7> t7, Task[] otherTasks)

Creates a task that will complete when all of the Task<T> and Task objects have completed.