Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Add a callback to the stack for the specified key. If the call is
specified as one_shot, it will be removed after being fired

The prefix is usually the channel number but the class is generic
and prefix and key may be any value. If you pass in only_caller
CallbackManager will restrict processing of the callback to only
the calling function/object that you specify.

:param prefix: Categorize the callback
:type prefix: str or int(more...)

src/c/a/captain-HEAD/vendor/lib/python/pika/connection.py   captain(Download)
 
        # Add the on connection error callback
        self.callbacks.add(0, self.ON_CONNECTION_ERROR,
                           on_open_error_callback or self._on_connection_error,
                           False)

src/p/i/pika-0.9.13/pika/connection.py   pika(Download)
 
        # Add the on connection error callback
        self.callbacks.add(0, self.ON_CONNECTION_ERROR,
                           on_open_error_callback or self._on_connection_error,
                           False)