EventHandlerFuture<T>
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
})]
internal sealed class EventHandlerFuture<[System.Runtime.CompilerServices.Nullable(2)] T> : AsyncDelegateFuture<EventHandler<T>>
{
private readonly object sender;
private readonly T args;
internal EventHandlerFuture(object sender, T args, CancellationToken token)
: base(token)
{
this.sender = sender;
this.args = args;
}
private protected override void InvokeOne(EventHandler<T> handler)
{
handler(sender, args);
}
}
}