MCPcopy
hub / github.com/scrapy/scrapy / collect_asyncgen

Function collect_asyncgen

scrapy/utils/asyncgen.py:9–10  ·  view source on GitHub ↗
(result: AsyncIterator[_T])

Source from the content-addressed store, hash-verified

7
8
9async def collect_asyncgen(result: AsyncIterator[_T]) -> list[_T]:
10 return [x async for x in result]
11
12
13async def as_async_generator(

Calls

no outgoing calls