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

Method try_iterator

Lib/test/test_asyncio/test_tasks.py:1448–1452  ·  view source on GitHub ↗
(awaitables)

Source from the content-addressed store, hash-verified

1446 return x
1447
1448 async def try_iterator(awaitables):
1449 values = []
1450 for f in asyncio.as_completed(awaitables):
1451 values.append(await f)
1452 return values
1453
1454 async def try_async_iterator(awaitables):
1455 values = []

Callers

nothing calls this directly

Calls 4

listClass · 0.85
advance_timeMethod · 0.80
appendMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected