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.all_tasks() should return only non-finished tasks. #76791
Comments
Current behavior has a subtle pitfall. Returning only alive tasks can make a function result more predictable ( Opinions? |
I agree, returning done tasks is pretty useless. This is a new function so let's fix its behavour. We need to:
|
After re-thinking I come to another idea: let's keep It should be done in Python 3.8 |
After an off-list discussion I think I was able to convince Andrew to change the behaviour of the newly added asyncio.all_tasks() to return only pending tasks. The logic behind this is that:
|
Ned, this one would also be nice to have in 3.7.0. The patch alters the behaviour of new 3.7 api. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: