Issue 29689: Asyncio-namespace helpers for async_generators (original) (raw)

Expanding an async_generator to any container-type currently makes you do an async-for loop/comprehension. There are some third-party libs (aitertools) that have helpers but it would be nice for this to be upstream for list, tuple, dict, set, etc.

Usage might be:

expanded: List[int] = await asyncio.list(gen())