MCPcopy
hub / github.com/psycopg/psycopg / alist

Function alist

tests/acompat.py:42–44  ·  view source on GitHub ↗

Consume an async iterator into a list. Async equivalent of list(it).

(it)

Source from the content-addressed store, hash-verified

40
41
42async def alist(it):
43 """Consume an async iterator into a list. Async equivalent of list(it)."""
44 return [i async for i in it]
45
46
47def spawn(f, args=None):

Callers 15

test_notify_timeout_0Function · 0.85
test_stop_afterFunction · 0.85
test_stop_after_batchFunction · 0.85
test_copy_out_iterFunction · 0.85
test_copy_out_paramFunction · 0.85
test_rowsFunction · 0.85
test_set_custom_typeFunction · 0.85
test_rows_notypesFunction · 0.85
test_copy_bad_resultFunction · 0.85
test_copy_queryFunction · 0.85
test_cant_reenterFunction · 0.85
test_strFunction · 0.85

Calls

no outgoing calls

Tested by 15

test_notify_timeout_0Function · 0.68
test_stop_afterFunction · 0.68
test_stop_after_batchFunction · 0.68
test_copy_out_iterFunction · 0.68
test_copy_out_paramFunction · 0.68
test_rowsFunction · 0.68
test_set_custom_typeFunction · 0.68
test_rows_notypesFunction · 0.68
test_copy_bad_resultFunction · 0.68
test_copy_queryFunction · 0.68
test_cant_reenterFunction · 0.68
test_strFunction · 0.68