<PackageReference Include="Nito.AsyncEx.Tasks" Version="5.0.0-pre-05" />

Nito.AsyncEx.TaskConstants

public static class TaskConstants
Provides completed task constants.
public static Task<bool> BooleanFalse { get; }

A task that has been completed with the value false.

public static Task<bool> BooleanTrue { get; }

A task that has been completed with the value true.

public static Task Canceled { get; }

A task that has been canceled.

public static Task Completed { get; }

A Task that has been completed.

public static Task<int> Int32NegativeOne { get; }

A task that has been completed with the value -1.

public static Task<int> Int32Zero { get; }

A task that has been completed with the value 0.