OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add wshobson/agents --skill rust-async-patterns
Master Rust async programming with Tokio, async traits, error handling, and concurrent patterns. Use when building async Rust applications, implementing concurrent systems, or debugging async code.
npx skills add wshobson/agents --skill rust-async-patterns
Production patterns for async Rust programming with Tokio runtime, including tasks, channels, streams, and error handling.
| Concept | Purpose |
|---|---|
Future | Lazy computation that may complete later |
async fn | Function returning impl Future |
await | Suspend until future completes |
Task | Spawned future running concurrently |
Runtime | Executor that polls futures |
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
tokio::select! - For racing futuresJoinSet - For managing multiple tasksCancellationTokenstd::thread::sleep in async? or log