Skip to content
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

Improved cancellation semantics #496

Closed
wants to merge 15 commits into from
Closed

Conversation

agronholm
Copy link
Owner

@agronholm agronholm commented Nov 6, 2022

We now use strict_exception_groups=True on Trio. Any non-base exceptions raised out of task groups are now wrapped in an exception group. If only cancellation exceptions are raised from an excgroup, they are merged into a single exception. This also takes care of variant 2 at #432.

@agronholm agronholm changed the title Improved asyncio cancellation semantics Improved cancellation semantics Nov 14, 2022
@agronholm agronholm marked this pull request as draft November 14, 2022 07:00
@agronholm
Copy link
Owner Author

I'm getting a bit tired trying to figure out why mypy fails on CI but not locally.

@agronholm
Copy link
Owner Author

Closing in favor of #586.

@agronholm agronholm closed this Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants