MCPcopy
hub / github.com/segmentio/kafka-go / Close

Method Close

consumergroup.go:685–691  ·  view source on GitHub ↗

Close terminates the current generation by causing this member to leave and releases all local resources used to participate in the consumer group. Close will also end the current generation if it is still active.

()

Source from the content-addressed store, hash-verified

683// releases all local resources used to participate in the consumer group.
684// Close will also end the current generation if it is still active.
685func (cg *ConsumerGroup) Close() error {
686 cg.closeOnce.Do(func() {
687 close(cg.done)
688 })
689 cg.wg.Wait()
690 return nil
691}
692
693// Next waits for the next consumer group generation. There will never be two
694// active generations. Next will never return a new generation until the

Callers 14

TestClientDeleteOffsetFunction · 0.95
TestClientOffsetCommitFunction · 0.95
TestClientDeleteGroupsFunction · 0.95
TestConsumerGroupFunction · 0.95
TestConsumerGroupErrorsFunction · 0.95
TestClientHeartbeatFunction · 0.95
CloseMethod · 0.45
nextGenerationMethod · 0.45

Calls

no outgoing calls