public override async Task FlushAsync(CancellationToken cancellationToken) { await _tcs.Task; await base.FlushAsync(cancellationToken); } }