Skip to content

Commit

Permalink
Merge pull request #1025 from vitaly-krugl/asyncio-example-run_forever
Browse files Browse the repository at this point in the history
Call self._connection.ioloop.run_forever() in asyncio_consumer.rst example
  • Loading branch information
vitaly-krugl committed Apr 26, 2018
2 parents 98e0e56 + ef10a48 commit 16cdb80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/examples/asyncio_consumer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ consumer.py::

"""
self._connection = self.connect()
self._connection.ioloop.start()
self._connection.ioloop.run_forever()

def stop(self):
"""Cleanly shutdown the connection to RabbitMQ by stopping the consumer
Expand All @@ -337,7 +337,7 @@ consumer.py::
LOGGER.info('Stopping')
self._closing = True
self.stop_consuming()
self._connection.ioloop.start()
self._connection.ioloop.run_forever()
LOGGER.info('Stopped')


Expand Down

0 comments on commit 16cdb80

Please sign in to comment.