/// <summary> /// Async complete outstanding pending operations /// </summary> /// <returns></returns> public async ValueTask CompletePendingAsync(bool waitForCommit = false, CancellationToken token = default) { token.ThrowIfCancellationRequested(); if (fht.epoch.ThisInstanceProtected()) { throw new NotSupportedException("Async operations not supported over protected epoch"); } // Complete all pending operations on session await fht.CompletePendingAsync(this, token); // Wait for commit if necessary if (waitForCommit) { await WaitForCommitAsync(token); } }