← Back to list

async-programming-skill
by ingpoc
⭐ 5🍴 0📅 Jan 2, 2026
SKILL.md
name: async-programming-skill description: This skill provides async/await patterns and best practices for concurrent programming
Async Programming
Purpose
Async/await enables non-blocking concurrent operations. This skill documents patterns for safe async code.
When to Use
Use this skill when:
- Working with I/O operations
- Building concurrent systems
- Managing timeouts
- Implementing cancellation
Key Patterns
1. All I/O is Async
Never use blocking I/O:
# WRONG
with open(file) as f:
data = json.load(f)
# CORRECT
async with aiofiles.open(file) as f:
data = await f.read()
2. Timeout Protection
All async operations need timeouts:
try:
result = await asyncio.wait_for(operation(), timeout=30.0)
except asyncio.TimeoutError:
# Handle timeout
3. Error Handling
Async operations need proper error handling:
async def safe_operation():
try:
return await risky_operation()
except Exception as e:
logger.error(f"Operation failed: {e}")
raise TradingError(...) from e
See Also
- Python asyncio: https://docs.python.org/3/library/asyncio.html
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon