Add KafkaConsumer#close

This commit is contained in:
Ulysse Carion
2015-07-07 16:03:44 -07:00
parent adbd4ac052
commit b47736dc26

View File

@@ -268,6 +268,10 @@ class KafkaConsumer(object):
# Reset message iterator in case we were in the middle of one
self._reset_message_iterator()
def close(self):
"""Close this consumer's underlying client."""
self._client.close()
def next(self):
"""Return the next available message