class documentation

class SignalManager:

View In Hierarchy

Undocumented

Method connect Connect a receiver function to a signal.
Method disconnect Disconnect a receiver function from a signal. This has the opposite effect of the connect method, and the arguments are the same.
Method disconnect​_all Disconnect all receivers from the given signal.
Method send​_catch​_log Send a signal, catch exceptions and log them.
Method send​_catch​_log​_deferred Like send_catch_log but supports returning ~twisted.internet.defer.Deferred objects from signal handlers.
Method __init__ Undocumented
Instance Variable sender Undocumented
def connect(self, receiver, signal, **kwargs):

Connect a receiver function to a signal.

The signal can be any object, although Scrapy comes with some predefined signals that are documented in the :ref:`topics-signals` section.

Parameters
receiver:collections.abc.Callablethe function to be connected
signal:objectthe signal to connect to
**kwargsUndocumented
def disconnect(self, receiver, signal, **kwargs):
Disconnect a receiver function from a signal. This has the opposite effect of the connect method, and the arguments are the same.
def disconnect_all(self, signal, **kwargs):
Disconnect all receivers from the given signal.
Parameters
signal:objectthe signal to disconnect from
**kwargsUndocumented
def send_catch_log(self, signal, **kwargs):

Send a signal, catch exceptions and log them.

The keyword arguments are passed to the signal handlers (connected through the connect method).

def send_catch_log_deferred(self, signal, **kwargs):

Like send_catch_log but supports returning ~twisted.internet.defer.Deferred objects from signal handlers.

Returns a Deferred that gets fired once all signal handlers deferreds were fired. Send a signal, catch exceptions and log them.

The keyword arguments are passed to the signal handlers (connected through the connect method).

def __init__(self, sender=dispatcher.Anonymous):

Undocumented

sender =

Undocumented