MCPcopy
hub / github.com/scrapy/scrapy / schedule

Method schedule

scrapy/utils/reactor.py:60–65  ·  view source on GitHub ↗
(self, delay: float = 0)

Source from the content-addressed store, hash-verified

58 self._deferreds: list[Deferred[None]] = []
59
60 def schedule(self, delay: float = 0) -> None:
61 # circular import
62 from scrapy.utils.asyncio import call_later # noqa: PLC0415
63
64 if self._call is None:
65 self._call = call_later(delay, self)
66
67 def cancel(self) -> None:
68 if self._call:

Callers 5

_process_start_nextMethod · 0.80
crawlMethod · 0.80
_downloadMethod · 0.80

Calls 1

call_laterFunction · 0.90

Tested by

no test coverage detected