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

Method try_async_iterator

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

Source from the content-addressed store, hash-verified

1452 return values
1453
1454 async def try_async_iterator(awaitables):
1455 values = []
1456 async for f in asyncio.as_completed(awaitables):
1457 values.append(await f)
1458 return values
1459
1460 for foo in try_iterator, try_async_iterator:
1461 with self.subTest(method=foo.__name__):

Callers

nothing calls this directly

Calls 5

setFunction · 0.85
advance_timeMethod · 0.80
appendMethod · 0.45
addMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected