Python Async Best Practices

Async and concurrency best practices for Python — event-loop discipline, task lifecycle, bounded fan-out, and async generator cleanup. Triggers on writing or reviewing asyncio code, async def functions, create_task/gather/TaskGroup usage, semaphores and queues, async generators and streams, blocking-call audits, or debugging hangs, orphaned tasks, swallowed cancellations, and unraisable async warnings.

nathan-gage fc9efbc 16 files · 72.8 KB Updated

File contents

nathan-gage/python-skills/tree/main/skills/python-async-best-practices commit fc9efbc17c

Frequently asked questions

npx skillmds add nathan-gage/python-async-best-practices