bpo-32610: Fix asyncio.all_tasks() to return only pending tasks. by 1st1 · Pull Request #7174 · python/cpython
Conversation
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation should reflect the difference
| def all_tasks(loop=None): | ||
| """Return a set of all tasks for the loop.""" | ||
| if loop is None: | ||
| loop = events.get_event_loop() |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_running_loop() maybe?
If all_tasks() is not the same as Task.all_tasks() anymore...
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd go for running, yes; it was my original request. Let me update the PR.
Thanks @1st1 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖
1st1
deleted the
fixall
branch
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
May 28, 2018…honGH-7174) (cherry picked from commit 416c1eb) Co-authored-by: Yury Selivanov <yury@magic.io>
miss-islington added a commit that referenced this pull request
May 29, 2018This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters