MCPcopy
hub / github.com/scrapy/scrapy / wait

Method wait

scrapy/utils/reactor.py:84–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

82 return result
83
84 async def wait(self) -> None:
85 # circular import
86 from scrapy.utils.defer import maybe_deferred_to_future # noqa: PLC0415
87
88 d: Deferred[None] = Deferred()
89 self._deferreds.append(d)
90 await maybe_deferred_to_future(d)
91
92
93_asyncio_reactor_path = "twisted.internet.asyncioreactor.AsyncioSelectorReactor"

Callers 10

stopMethod · 0.80
joinMethod · 0.80
_parallel_asyncioFunction · 0.80
__exit__Method · 0.80
close_spiderMethod · 0.80
test_fetchMethod · 0.80
_test_shutdown_forcedMethod · 0.80

Calls 1

maybe_deferred_to_futureFunction · 0.90

Tested by 4

test_fetchMethod · 0.64
_test_shutdown_forcedMethod · 0.64