@remark This call will block until the consumer has revoked its assignment,
calling the \c rebalance_cb if it is configured, committed offsets
to broker, and left the consumer group.
The maximum blocking time is roughly limited to session.timeout.ms.
@returns An error code indicating if the consumer close was succesful
or not.
@remark The application still needs to call rd_kafka_destroy() after
this call finishes to clean up the underlying handle resources.
@brief Close down the KafkaConsumer.
@remark This call will block until the consumer has revoked its assignment, calling the \c rebalance_cb if it is configured, committed offsets to broker, and left the consumer group. The maximum blocking time is roughly limited to session.timeout.ms.
@returns An error code indicating if the consumer close was succesful or not.
@remark The application still needs to call rd_kafka_destroy() after this call finishes to clean up the underlying handle resources.