MCPcopy
hub / github.com/scrapy/scrapy / ensure_awaitable

Function ensure_awaitable

scrapy/utils/defer.py:543–543  ·  view source on GitHub ↗
(o: Awaitable[_T], _warn: str | None = None)

Source from the content-addressed store, hash-verified

541
542@overload
543def ensure_awaitable(o: Awaitable[_T], _warn: str | None = None) -> Awaitable[_T]: ...
544
545
546@overload

Callers 15

_process_chainMethod · 0.90
handlerFunction · 0.90
call_spider_asyncMethod · 0.90
close_spider_asyncMethod · 0.90
_process_requestMethod · 0.90
_process_responseMethod · 0.90
_process_exceptionMethod · 0.90
_closeMethod · 0.90
image_downloadedMethod · 0.90
media_downloadedMethod · 0.90
_file_downloadedMethod · 0.90
_process_requestMethod · 0.90

Calls 2

maybe_deferred_to_futureFunction · 0.85
coroFunction · 0.85

Tested by 2

create_schedulerFunction · 0.72
test_crawl_multipleMethod · 0.72