Like :meth:`send_catch_log` but supports :ref:`asynchronous signal handlers `. Returns a Deferred that gets fired once all signal handlers have finished. Send a signal, catch exceptions and log them. The keyword arguments are passed to the
(
self, signal: Any, **kwargs: Any
)
| 52 | return _signal.send_catch_log(signal, **kwargs) |
| 53 | |
| 54 | def send_catch_log_deferred( |
| 55 | self, signal: Any, **kwargs: Any |
| 56 | ) -> Deferred[list[tuple[Any, Any]]]: # pragma: no cover |
| 57 | """ |
| 58 | Like :meth:`send_catch_log` but supports :ref:`asynchronous signal |
| 59 | handlers <signal-deferred>`. |
| 60 | |
| 61 | Returns a Deferred that gets fired once all signal handlers |
| 62 | have finished. Send a signal, catch exceptions and log them. |
| 63 | |
| 64 | The keyword arguments are passed to the signal handlers (connected |
| 65 | through the :meth:`connect` method). |
| 66 | """ |
| 67 | kwargs.setdefault("sender", self.sender) |
| 68 | warnings.warn( |
| 69 | "send_catch_log_deferred() is deprecated, use send_catch_log_async() instead", |
| 70 | ScrapyDeprecationWarning, |
| 71 | stacklevel=2, |
| 72 | ) |
| 73 | return _signal._send_catch_log_deferred(signal, **kwargs) |
| 74 | |
| 75 | async def send_catch_log_async( |
| 76 | self, signal: Any, **kwargs: Any |
nothing calls this directly
no test coverage detected