DotNext by Roman Sakno

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

 ActionFuture<T1, T2, T3, T4, T5>

sealed class ActionFuture<T1, T2, T3, T4, T5> : AsyncDelegateFuture<Action<T1, T2, T3, T4, T5>>
using System; using System.Runtime.CompilerServices; using System.Threading; namespace DotNext.Runtime.CompilerServices { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(new byte[] { 0, 1, 1, 1, 1, 1, 1 })] internal sealed class ActionFuture<[System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3, [System.Runtime.CompilerServices.Nullable(2)] T4, [System.Runtime.CompilerServices.Nullable(2)] T5> : AsyncDelegateFuture<Action<T1, T2, T3, T4, T5>> { private readonly T1 arg1; private readonly T2 arg2; private readonly T3 arg3; private readonly T4 arg4; private readonly T5 arg5; internal ActionFuture(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, CancellationToken token) : base(token) { this.arg1 = arg1; this.arg2 = arg2; this.arg3 = arg3; this.arg4 = arg4; this.arg5 = arg5; } private protected override void InvokeOne(Action<T1, T2, T3, T4, T5> handler) { handler(arg1, arg2, arg3, arg4, arg5); } } }