File: asyncio.rst

package info (click to toggle)
python-pika 1.3.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,088 kB
  • sloc: python: 20,890; makefile: 134
file content (16 lines) | stat: -rw-r--r-- 628 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Asyncio Connection Adapter
==========================
.. automodule:: pika.adapters.asyncio_connection

Be sure to check out the :doc:`asynchronous examples </examples>` including the asyncio specific :doc:`consumer </examples/asyncio_consumer>` example.

Interacting with Pika from another thread
-----------------------------------------
``pika.adapters.asyncio_connection.AsyncioConnection``'s I/O loop exposes ``call_soon_threadsafe()`` to allow interacting with Pika from another thread.

Class Reference
----------------

.. autoclass:: pika.adapters.asyncio_connection.AsyncioConnection
  :members:
  :inherited-members: