//**************************************** public void Attach(AsyncCounterDecrement decrement) { var Task = new ValueTask <bool>(decrement, decrement.Version); _Awaiter = Task.ConfigureAwait(false).GetAwaiter(); if (_Awaiter.IsCompleted) { OnContinuePeekDecrement(); } else { _Awaiter.OnCompleted(_ContinuePeekDecrement); } }
public void OnCompleted(Action continuation) => _taskAwaiter.OnCompleted(WrapContinuation(continuation));
void INotifyCompletion.OnCompleted(Action continuation) => _cfgAwaiter.OnCompleted(continuation);