-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asyncio.wait(aws)
require aws is 'iterable', but doesn't accept generator
#99936
Comments
This is because generators are in This is presumably a holdover from generator-based coroutines, which no longer exist in recent versions of asyncio. We should consider removing |
a more thing: maybe should update the document to match the warning? |
Duplicate of #78530 |
I have seen #78530 when open issue. However, this issue is more about the document. |
I am thinking of allowing this rather than documenting this. See my comment #78530 (comment) and let's continue the discussion on that issue. |
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 acceptgenerator
while which is iterable ( has iter and next methods):The text was updated successfully, but these errors were encountered: