You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using AsyncClientSession#subscribe async generator swallows the CancellationError, prevent proper cancellation handling of subscription tasks. The subscription still ends as expected, but does not re-raise the CancelledError which breaks the asyncio contract.
Describe the bug
Using
AsyncClientSession#subscribe
async generator swallows theCancellationError
, prevent proper cancellation handling of subscription tasks. The subscription still ends as expected, but does not re-raise theCancelledError
which breaks theasyncio
contract.To Reproduce
Steps to reproduce the behavior:
Output:
Expected behavior
Expected the iteration of the async generator to re-raise the
CancelledError
System info (please complete the following information):
The text was updated successfully, but these errors were encountered: