Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
9
async
def
collect_asyncgen(result: AsyncIterator[_T]) -> list[_T]:
10
return
[x async
for
x in result]
11
12
13
async
def
as_async_generator(
Callers
15
parse_with_rules
Method · 0.90
iterate_spider_output
Method · 0.90
test_mutableasyncchain
Method · 0.90
test_mutableasyncchain_exc
Method · 0.90
test_invalid_process_spider_exception
Method · 0.90
test_process_spider_exception_return_none
Method · 0.90
_test_asyncgen_base
Method · 0.90
test_simple
Method · 0.90
test_deprecated_mw_spider_arg
Method · 0.90
test_collect_asyncgen
Method · 0.90
test_aiter_errback_good
Method · 0.90
test_iter_errback_bad
Method · 0.90
Calls
no outgoing calls
Tested by
14
test_mutableasyncchain
Method · 0.72
test_mutableasyncchain_exc
Method · 0.72
test_invalid_process_spider_exception
Method · 0.72
test_process_spider_exception_return_none
Method · 0.72
_test_asyncgen_base
Method · 0.72
test_simple
Method · 0.72
test_deprecated_mw_spider_arg
Method · 0.72
test_collect_asyncgen
Method · 0.72
test_aiter_errback_good
Method · 0.72
test_iter_errback_bad
Method · 0.72
test_trivial
Function · 0.72
test_processed_request
Function · 0.72