public void Dispose() { if (_currentBatch.Any()) { FunctionIndexer.IndexAsync(_currentBatch).Wait(); _currentBatch.Clear(); } }