Skip to content

gh-155143: Fix asyncio.shield leaking tasks via await-graph. - #155144

Open
pteromys wants to merge 1 commit into
python:mainfrom
pteromys:main
Open

gh-155143: Fix asyncio.shield leaking tasks via await-graph.#155144
pteromys wants to merge 1 commit into
python:mainfrom
pteromys:main

Conversation

@pteromys

@pteromys pteromys commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

There were two places where `cur_task` could live until `inner` ended:

1. `inner._asyncio_awaited_by`, and
2. as a capture in `_clear_awaited_by_callback` in `inner._callbacks`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant