/// <summary> /// Flushes messages and stop accepting new ones. /// </summary> public async Task Stop() { _messages.Complete(); await _messages.Completion; _batchStrategy.Dispose(); }
public async Task Stop() { _innerActor.Complete(); await _innerActor.Completion; _fetchBatchStrategy.Dispose(); _offsetBatchStrategy.Dispose(); }
public async Task Stop() { _innerActor.Complete(); await _innerActor.Completion; _fetchBatchStrategy.Dispose(); _offsetBatchStrategy.Dispose(); if (_consumerGroup != null) { await CommitAll(); await _consumerGroup.LeaveGroup(); _heartbeatTimer.Dispose(); if (_commitTimer != null) { _commitTimer.Dispose(); } } }