MCPcopy
hub / github.com/scrapy/scrapy / is_reactor_installed

Function is_reactor_installed

scrapy/utils/reactor.py:213–215  ·  view source on GitHub ↗

Check whether a :mod:`~twisted.internet.reactor` is installed.

()

Source from the content-addressed store, hash-verified

211
212
213def is_reactor_installed() -> bool:
214 """Check whether a :mod:`~twisted.internet.reactor` is installed."""
215 return "twisted.internet.reactor" in sys.modules
216
217
218def is_asyncio_reactor_installed() -> bool:

Callers 15

_apply_settingsMethod · 0.90
crawlMethod · 0.90
__init__Method · 0.90
get_reactor_settingsFunction · 0.90
get_crawlerFunction · 0.90
is_reactorlessFunction · 0.90
is_asyncio_availableFunction · 0.90
test_installed_reactorFunction · 0.90
inline_callbacks_testFunction · 0.90
coroutine_testFunction · 0.90

Calls

no outgoing calls

Tested by 3

get_reactor_settingsFunction · 0.72
get_crawlerFunction · 0.72
test_installed_reactorFunction · 0.72