ActionFuture<T>
using System;
using System.Threading;
namespace DotNext.Runtime.CompilerServices
{
internal sealed class ActionFuture<T> : AsyncDelegateFuture<Action<T>>
{
private readonly T arg;
internal ActionFuture(T arg, CancellationToken token)
: base(token)
{
this.arg = arg;
}
private protected override void InvokeOne(Action<T> handler)
{
handler(arg);
}
}
}