MCPcopy Index your code
hub / github.com/python/cpython / iterate

Function iterate

Lib/test/test_asyncgen.py:45–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44def to_list(gen):
45 async def iterate():
46 res = []
47 async for i in gen:
48 res.append(i)
49 return res
50
51 return run_until_complete(iterate())
52

Callers 4

to_listFunction · 0.85
test_defaultMethod · 0.85
test_set_return_valueMethod · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…