We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d993f93 commit 445918cCopy full SHA for 445918c
packages/service-library/src/servicelib/async_utils.py
@@ -254,10 +254,10 @@ async def retried_cancel_task(
254
:param task: task to be canceled
255
:param timeout_delay: duration (in seconds) to wait before giving
256
up the cancellation. If None it waits forever. Will be repeated _MAX_TASK_CANCELLATION_ATTEMPTS times.
257
- :raises TimeoutError: raised if cannot cancel the task. Errors during cancellations are suppressed (backwards compatibility).
+ :raises TimeoutError: raised if cannot cancel the task.
258
"""
259
260
task.cancel()
261
async with asyncio.timeout(timeout):
262
- with contextlib.suppress(BaseException):
+ with contextlib.suppress(asyncio.CancelledError):
263
await task
0 commit comments