DotNext by .NET Foundation and Contributors

<PackageReference Include="DotNext" Version="4.5.0" />

 Continuation<T, TConstant>

static class Continuation<T, TConstant> where TConstant : Constant<T>
using DotNext.Generic; using System; using System.Threading.Tasks; namespace DotNext.Threading.Tasks { internal static class Continuation<T, TConstant> where TConstant : Constant<T>, new { internal static readonly Func<Task<T>, object, T> WhenFaulted = CompletedTask<T, TConstant>.WhenFaulted; internal static readonly Func<Task<T>, T> WhenCanceled = CompletedTask<T, TConstant>.WhenCanceled; internal static readonly Func<Task<T>, object, T> WhenFaultedOrCanceled = CompletedTask<T, TConstant>.WhenFaultedOrCanceled; } }