MCPcopy
hub / github.com/scrapy/scrapy / close

Method close

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

Source from the content-addressed store, hash-verified

86 self._maybe_fire_closing()
87
88 async def close(self) -> None:
89 self.closing = Deferred()
90 self._maybe_fire_closing()
91 await maybe_deferred_to_future(self.closing)
92
93 def _maybe_fire_closing(self) -> None:
94 if self.closing is not None and not self.inprogress:

Callers 7

_close_loopMethod · 0.45
_create_shutdown_taskMethod · 0.45
open_in_browserFunction · 0.45
ftp_store_fileFunction · 0.45
__init__Method · 0.45
close_asyncMethod · 0.45
close_spider_asyncMethod · 0.45

Calls 2

_maybe_fire_closingMethod · 0.95
maybe_deferred_to_futureFunction · 0.90

Tested by

no test coverage detected