Skip to content

Commit

Permalink
docs: Add example using routing_keys argument
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jan 17, 2022
1 parent 025ebab commit aa32949
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ Consume messages
consumer = Client(url="amqp://user:pass@127.0.0.1", exchange="myexchange", prefetch_count=5)
consumer.consume(callback, queue="messages", decorator=discard)
yapw implements a pattern whereby the consumer declares and binds a queue. The queue's name and binding key are the same, and are namespaced by the exchange name.
yapw implements a pattern whereby the consumer declares and binds a queue. By default, the queue's name and binding key are the same, and are namespaced by the exchange name. To set the binding keys:

.. code-block:: python
consumer.consume(callback, queue="messages", routing_keys=["a", "b"], decorator=discard)
.. seealso::

Expand Down

0 comments on commit aa32949

Please sign in to comment.