tokio-patterns
CommunityApply Tokio patterns for robust async apps.
Authorgeoffjay
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides common patterns and idioms for building robust async applications with Tokio.
Core Features & Use Cases
- Worker Pool Pattern: Limit concurrent task execution using a semaphore to avoid overload and ensure fair scheduling.
- Request-Response Pattern: Use oneshot channels for precise request-response communication.
- Pub/Sub with Channels: Implement publish/subscribe messaging with Tokio channels.
- Timeout Pattern: Wrap operations with timeout to fail fast on long-running tasks.
- Retry with Exponential Backoff: Retry failed operations with backoff to improve resilience.
- Graceful Shutdown: Coordinate clean shutdown across components.
Quick Start
Use the tokio-patterns skill to implement a worker pool with a semaphore and a graceful shutdown in a sample service.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: tokio-patterns Download link: https://github.com/geoffjay/claude-plugins/archive/main.zip#tokio-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.