Using AsyncClientSession#subscribe
async generator swallows the CancellationError
#544
7BB6
8000
AsyncClientSession#subscribe
async generator swallows the CancellationError
#544
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: