MCPcopy Create free account
hub / github.com/pallets/quart / cancel_tasks

Function cancel_tasks

src/quart/utils.py:173–179  ·  view source on GitHub ↗
(tasks: set[asyncio.Task])

Source from the content-addressed store, hash-verified

171
172
173async def cancel_tasks(tasks: set[asyncio.Task]) -> None:
174 # Cancel any pending, and wait for the cancellation to
175 # complete i.e. finish any remaining work.
176 for task in tasks:
177 task.cancel()
178 await asyncio.gather(*tasks, return_exceptions=True)
179 raise_task_exceptions(tasks)
180
181
182def raise_task_exceptions(tasks: set[asyncio.Task]) -> None:

Callers 3

__call__Method · 0.85
__call__Method · 0.85
shutdownMethod · 0.85

Calls 1

raise_task_exceptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…