<PackageReference Include="Newtonsoft.Json" Version="11.0.1" />

AsyncUtils

static class AsyncUtils
public static readonly Task<bool> False

public static readonly Task<bool> True

public static Task CancelIfRequestedAsync(this CancellationToken cancellationToken)

public static Task<T> CancelIfRequestedAsync<T>(this CancellationToken cancellationToken)

public static Task FromCanceled(this CancellationToken cancellationToken)

public static Task<T> FromCanceled<T>(this CancellationToken cancellationToken)

public static bool IsCompletedSucessfully(this Task task)

public static Task<int> ReadAsync(this TextReader reader, char[] buffer, int index, int count, CancellationToken cancellationToken)

public static Task WriteAsync(this TextWriter writer, char value, CancellationToken cancellationToken)

public static Task WriteAsync(this TextWriter writer, string value, CancellationToken cancellationToken)

public static Task WriteAsync(this TextWriter writer, char[] value, int start, int count, CancellationToken cancellationToken)