What problem does it solve?
This skill addresses the complexity of building reliable, non-blocking Python applications by providing a structured approach to concurrency, preventing common pitfalls like task leaks, event loop stalls, and unhandled exceptions.
Core Features & Use Cases
- Structured Concurrency: Utilizes TaskGroup for safe task management and automatic cancellation propagation.
- Resilience Patterns: Implements timeouts, bounded concurrency, and graceful shutdown protocols to ensure system stability.
- Use Case: Ideal for building high-performance network services, producer-consumer data pipelines, or managing multiple I/O-bound operations without blocking the main execution thread.
Quick Start
Use the py-async skill to refactor the current network request module into a structured concurrency pattern using TaskGroup and proper timeout handling.