Asyncio CancelledError Can Be Consumed

Asyncio tasks can suppress requests to be canceled and actively consume CancelledError exceptions. Although consuming CancelledError exceptions is discouraged, it is possible to develop tasks that do this. Nevertheless, there are cases where we may think that a CancelledError exception will be consumed, when in fact it is not and is allowed to propagate normally. […]
 •  0 comments  •  flag
Share on Twitter
Published on January 23, 2024 10:00
No comments have been added yet.