MCPcopy
hub / github.com/scrapy/scrapy / stop

Method stop

scrapy/core/engine.py:205–211  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

203 await maybe_deferred_to_future(self._closewait)
204
205 def stop(self) -> Deferred[None]: # pragma: no cover
206 warnings.warn(
207 "ExecutionEngine.stop() is deprecated, use stop_async() instead",
208 ScrapyDeprecationWarning,
209 stacklevel=2,
210 )
211 return deferred_from_coro(self.stop_async())
212
213 async def stop_async(self) -> None:
214 """Gracefully stop the execution engine.

Callers 6

_maybe_fire_closingMethod · 0.45
_stop_slot_gcMethod · 0.45
spider_closedMethod · 0.45
spider_closedMethod · 0.45
spider_closedMethod · 0.45
engine_stoppedMethod · 0.45

Calls 2

stop_asyncMethod · 0.95
deferred_from_coroFunction · 0.90

Tested by

no test coverage detected