View definition

(PartitionConsumer).Close

Defined in github.com/Shopify/sarama/consumer.go

Description

Close stops the PartitionConsumer from fetching messages. It is required to call this function (or AsyncClose) before a consumer object passes out of scope, as it will otherwise leak memory. You must call this before calling Close on the underlying client.