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

Method stop

tests/test_engine.py:183–188  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

181 await maybe_deferred_to_future(self.deferred)
182
183 async def stop(self):
184 for name, signal in vars(signals).items():
185 if not name.startswith("_"):
186 disconnect_all(signal)
187 self.deferred.callback(None)
188 await self.crawler.stop_async()
189
190 def geturl(self, path: str) -> str:
191 return self.mockserver.url(path)

Callers 1

Calls 4

disconnect_allFunction · 0.90
itemsMethod · 0.80
callbackMethod · 0.80
stop_asyncMethod · 0.45

Tested by

no test coverage detected