Maintenance in progress: we are indexing a large batch of new skills. Some pages may load slowly or briefly show no results. Nothing is lost, and everything is back to normal within the hour.

Cancel Async Tasks

Guidance for implementing proper asyncio task cancellation with signal handling in Python. This skill applies when implementing concurrent task runners that need graceful shutdown, handling KeyboardInterrupt/SIGINT in asyncio contexts, or managing task cleanup when using semaphores for concurrency limiting. Use when tasks involve asyncio.gather, CancelledError handling, or cleanup of tasks that haven't started execution.

tools-only 13091bd 3 files · 15.3 KB Updated 7 repo stars

File contents

tools-only/X-Skills/tree/main/development/003-name-skill_0195b76b commit 13091bdffd

Frequently asked questions

npx skillmds add tools-only/cancel-async-tasks