Nito.Disposables.Internals.BoundAsyncActionField<T>
A field containing a bound asynchronous action.
namespace Nito.Disposables.Internals
{
public sealed class BoundAsyncActionField<[System.Runtime.CompilerServices.Nullable(2)] T>
{
public interface IBoundAction
{
ValueTask InvokeAsync();
}
public bool IsEmpty { get; }
public BoundAsyncActionField(Func<T, ValueTask> action, T context);
public IBoundAction TryGetAndUnset();
public bool TryUpdateContext(Func<T, T> contextUpdater);
}
}