Start a graceful stop of the crawler and return a deferred that is fired when the crawler is stopped.
(self)
| 234 | return ExecutionEngine(self, lambda _: self.stop_async()) |
| 235 | |
| 236 | def stop(self) -> Deferred[None]: |
| 237 | """Start a graceful stop of the crawler and return a deferred that is |
| 238 | fired when the crawler is stopped.""" |
| 239 | warnings.warn( |
| 240 | "Crawler.stop() is deprecated, use stop_async() instead", |
| 241 | ScrapyDeprecationWarning, |
| 242 | stacklevel=2, |
| 243 | ) |
| 244 | return deferred_from_coro(self.stop_async()) |
| 245 | |
| 246 | async def stop_async(self) -> None: |
| 247 | """Start a graceful stop of the crawler and complete when the crawler is stopped. |
no test coverage detected