MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / wait_for_cancellation

Function wait_for_cancellation

launch_camoufox.py:1811–1820  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1809
1810 # Give tasks a brief moment to acknowledge cancellation
1811 async def wait_for_cancellation():
1812 try:
1813 await asyncio.wait_for(
1814 asyncio.gather(*tasks, return_exceptions=True),
1815 timeout=3.0,
1816 )
1817 except asyncio.TimeoutError:
1818 logger.warning(
1819 "[ID-03] Timeout waiting for tasks to cancel."
1820 )
1821
1822 loop.create_task(wait_for_cancellation())
1823 except Exception as e:

Callers 1

signal_handlerFunction · 0.85

Calls 1

warningMethod · 0.80

Tested by

no test coverage detected