Skip to content

Conversation

@mbrandonw
Copy link
Member

Turns out some async functions will detect cancellation and throw their own cancellation errors rather than just throwing _Concurrency.CancellationError. So we need to guard against those situations.

@mbrandonw mbrandonw requested a review from stephencelis August 22, 2025 15:54
@mbrandonw mbrandonw closed this Aug 22, 2025
@mbrandonw mbrandonw force-pushed the better-cancellation-detection branch from f3c4757 to 9dae1ff Compare August 22, 2025 15:56
@mbrandonw mbrandonw reopened this Aug 22, 2025
@stephencelis stephencelis merged commit 5638930 into main Aug 22, 2025
13 of 15 checks passed
@stephencelis stephencelis deleted the better-cancellation-detection branch August 22, 2025 20:42
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.

3 participants