File: blocking.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 (21 lines) | stat: -rw-r--r-- 677 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Blocking Connection Adapter
===========================
.. automodule:: pika.adapters.blocking_connection

Be sure to check out examples in :doc:`/examples`.

Interacting with Pika from another thread
-----------------------------------------

``pika.BlockingConnection`` abstracts its I/O loop from the application and thus exposes ``pika.BlockingConnection.add_callback_threadsafe()``  to allow interacting with Pika from another thread.

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

.. autoclass:: pika.adapters.blocking_connection.BlockingConnection
  :members:
  :inherited-members:

.. autoclass:: pika.adapters.blocking_connection.BlockingChannel
  :members:
  :inherited-members: