Skip to content

Conversation

@darkdragon-001
Copy link
Contributor

@darkdragon-001 darkdragon-001 commented Jan 3, 2026

Without this, client code can't easily handle this exception as it is backend specific. Creating a common exception for both backends.

darkdragon-001 and others added 3 commits January 2, 2026 16:24
Previously, a single future was used and any package which was received before the future was awaited was silently discarded.
@darkdragon-001 darkdragon-001 marked this pull request as ready for review January 3, 2026 06:04
@rthalley
Copy link
Owner

rthalley commented Jan 3, 2026

This is incorrect for trio, where the special trio canceled exception is caught by cancel scopes. Your change will break correct trio code.

https://trio.readthedocs.io/en/stable/reference-core.html#trio.Cancelled

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