class SignalManager: (source)
Undocumented
Method | __init__ |
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 :meth:`connect` method, and the arguments are the same. |
Method | disconnect |
Disconnect all receivers from the given signal. |
Method | send |
Send a signal, catch exceptions and log them. |
Method | send |
Like :meth:`send_catch_log` but supports returning :class:`~twisted.internet.defer.Deferred` objects from signal handlers. |
Instance Variable | sender |
Undocumented |
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. :param receiver: the function to be connected :type receiver: collections.abc.Callable :param signal: the signal to connect to :type signal: object
Disconnect a receiver function from a signal. This has the opposite effect of the :meth:`connect` method, and the arguments are the same.
Disconnect all receivers from the given signal. :param signal: the signal to disconnect from :type signal: object
Send a signal, catch exceptions and log them. The keyword arguments are passed to the signal handlers (connected through the :meth:`connect` method).
Like :meth:`send_catch_log` but supports returning :class:`~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 :meth:`connect` method).