MCPcopy
hub / github.com/scrapy/scrapy / _get_reactorless_loop

Method _get_reactorless_loop

scrapy/commands/shell.py:120–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

118 future.result()
119
120 def _get_reactorless_loop(self) -> asyncio.AbstractEventLoop:
121 assert self.crawler_process
122 assert isinstance(self.crawler_process, AsyncCrawlerProcess)
123 loop = self.crawler_process._reactorless_loop
124 assert loop
125 return loop
126
127 def _start_crawler_thread(self) -> None:
128 """Run self.crawler_process.start() in a separate thread."""

Callers 2

runMethod · 0.95
_init_without_reactorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected