FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

🐛 Fix, avoid yield from a TaskGroup, only as an async context manager, closed in the request async exit stack by tiangolo · Pull Request #15038 · fastapi/fastapi · GitHub

Repository navigation

🐛 Fix, avoid yield from a TaskGroup, only as an async context manager, closed in the request async exit stack - #15038

Merged
tiangolo merged 1 commit into
masterfrom
no-yield-taskgroup
Mar 1, 2026
Merged

tiangolo merged 1 commit into
masterfrom
no-yield-taskgroup

Conversation

tiangolo commented Mar 1, 2026

Copy link
Copy Markdown
Member

🐛 Fix, avoid yield from a TaskGroup, only as an async context manager, closed in the request async exit stack

Ref: https://peps.python.org/pep-0789/

Discovered by extrapolating insights by @graingert while discussing another comparable external use case.

tiangolo added the bug Something isn't working label Mar 1, 2026

codspeed Bot commented Mar 1, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 20 untouched benchmarks


Comparing no-yield-taskgroup (65d01e3) with master (c796ba4)1

Footnotes

  1. No successful run was found on master (6038507) during the generation of this report, so c796ba4 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

tiangolo marked this pull request as ready for review March 1, 2026 18:15
tiangolo merged commit 8a9258b into master Mar 1, 2026
31 checks passed
tiangolo deleted the no-yield-taskgroup branch March 1, 2026 18:16
This 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL