<PackageReference Include="Nito.AsyncEx.Tasks" Version="5.1.2" />

Nito.AsyncEx.TaskExtensions

public static class TaskExtensions
Provides extension methods for the Task and Task<T> types.
namespace Nito.AsyncEx { public static class TaskExtensions { public static Task WaitAsync(this Task this, CancellationToken cancellationToken); public static Task<TResult> WaitAsync<[System.Runtime.CompilerServices.Nullable(2)] TResult>(this Task<TResult> this, CancellationToken cancellationToken); public static Task<Task> WhenAny(this IEnumerable<Task> this, CancellationToken cancellationToken); public static Task<Task> WhenAny(this IEnumerable<Task> this); public static Task<Task<TResult>> WhenAny<[System.Runtime.CompilerServices.Nullable(2)] TResult>(this IEnumerable<Task<TResult>> this, CancellationToken cancellationToken); public static Task<Task<TResult>> WhenAny<[System.Runtime.CompilerServices.Nullable(2)] TResult>(this IEnumerable<Task<TResult>> this); public static Task WhenAll(this IEnumerable<Task> this); public static Task<TResult[]> WhenAll<[System.Runtime.CompilerServices.Nullable(2)] TResult>(this IEnumerable<Task<TResult>> this); public static void Ignore(this Task this); public static void Ignore<[System.Runtime.CompilerServices.Nullable(2)] T>(this Task<T> this); public static List<Task<T>> OrderByCompletion<[System.Runtime.CompilerServices.Nullable(2)] T>(this IEnumerable<Task<T>> this); public static List<Task> OrderByCompletion(this IEnumerable<Task> this); } }