Install any skill in seconds. Free to start, no credit card required.
Get Started Free →wshobson/async-python-patterns
Master Python asyncio, concurrent programming, and async/await patterns for high-performance applications.
Passed 20 of 22 test cases with the skill, and 19 of 22 without it.
1 fixed19 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
I am writing a Python script that performs pure matrix multiplication and data crunching across 16 cores on a dedicated server with zero network or disk I/O. What Python concurrency approach is recommended for maximum throughput?
| Checked | Without skill | With skill |
|---|---|---|
| The response code imports ProcessPoolExecutor from concurrent.futures. | Missed | Passed |
| The response code passes max_workers when instantiating ProcessPoolExecutor. | Missed | Passed |
The instructions your model reads when the skill loads.
Comprehensive guidance for implementing asynchronous Python applications using asyncio, concurrent programming patterns, and async/await for building high-performance, non-blocking systems.
Before adopting async, consider whether it's the right choice for your use case.
| Use Case | Recommended Approach |
|---|---|
| Many concurrent network/DB calls | asyncio |
| CPU-bound computation | multiprocessing or thread pool |
| Mixed I/O + CPU | Offload CPU work with asyncio.to_thread() |
| Simple scripts, few connections | Sync (simpler, easier to debug) |
| Web APIs with high concurrency | Async frameworks (FastAPI, aiohttp) |
Key Rule: Stay fully sync or fully async within a call path. Mixing creates hidden blocking and complexity.
The event loop is the heart of asyncio, managing and scheduling asynchronous tasks.
Key characteristics:
test cases passed, vs 19 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.