Async¶
Helper module to add some utils to Python’s asyncio.
- async cli2.asyncio.async_resolve(result, output=False)[source]¶
Recursively resolve awaitables and async iterables.
- Parameters:
result – The awaitable or async iterable to resolve
output – If True, print results as they are resolved. If False, collect results.
- Returns:
The resolved value(s). If output is True, returns None. If output is False, returns a list of resolved values from async iterables.