MCPcopy
hub / github.com/scrapy/scrapy / get_from_asyncio_queue

Function get_from_asyncio_queue

scrapy/utils/test.py:101–105  ·  view source on GitHub ↗
(value: _T)

Source from the content-addressed store, hash-verified

99
100
101def get_from_asyncio_queue(value: _T) -> Awaitable[_T]:
102 q: asyncio.Queue[_T] = asyncio.Queue()
103 getter = q.get()
104 q.put_nowait(value)
105 return getter
106
107
108def get_web_client_agent_req(url: str) -> Deferred[TxResponse]: # pragma: no cover

Callers 9

process_requestMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90
parseMethod · 0.90
_on_item_scrapedMethod · 0.90
ok_handlerMethod · 0.90
ok_handlerMethod · 0.90
process_itemMethod · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected