Bug report
|
""" |
|
if futures.isfuture(fs) or coroutines.iscoroutine(fs): |
|
raise TypeError(f"expect a list of futures, not {type(fs).__name__}") |
https://docs.python.org/3/library/asyncio-task.html#waiting-primitives
https://docs.python.org/3/glossary.html#term-iterable
asyncio.wait(aws) require aws is 'iterable' but doesn't accept
generator while which is iterable ( has
iter and
next methods):
await asyncio.wait(asyncfunc(_) for _ in range())
Bug report
cpython/Lib/asyncio/tasks.py
Lines 407 to 409 in 0563be2
https://docs.python.org/3/library/asyncio-task.html#waiting-primitives
https://docs.python.org/3/glossary.html#term-iterable
asyncio.wait(aws)require aws is 'iterable' but doesn't acceptgeneratorwhile which is iterable ( has iter and next methods):