-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
gh-93297: Make asyncio task groups prevent child tasks from being GCed #93299
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, but it looks like self._unfinished_tasks
is now redundant -- it is always equal to len(self._tasks)
, isn't it?
Yeah, true. The code looks cleaner now, please see the updated diff. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Thanks @1st1 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
…ng GCed (pythonGH-93299) (cherry picked from commit e6a5767) Co-authored-by: Yury Selivanov <yury@edgedb.com>
GH-93305 is a backport of this pull request to the 3.11 branch. |
No description provided.