wshobson/agents

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.

All-time #1221 Trending #1647 First seen Jan 20, 2026
8-week activity · all time api

Installation

$ npx skills add https://github.com/wshobson/agents
Feature your product here Skill page unit · reach builders installing agent skills View pricing →

Summary

  • Production patterns for async Rust with Tokio, channels, error handling, and concurrent task management.
  • Covers seven core patterns: concurrent task execution with JoinSet and select! , multi-producer channels (mpsc, broadcast, oneshot, watch), custom error types with anyhow and thiserror , graceful shutdown via CancellationToken , async traits with async_trait , streams and async iteration, and resource pooling with RwLock and Semaphore Includes practical examples for racing futures, limiting concurrency, timeout handling, and task cancellation across shutdown scenarios Provides debugging guidance using tokio-console , tracing instrumentation, and common pitfalls like blocking in async contexts or holding locks across awaits Best practices section covers when to use channels over shared state, proper error propagation, and spawn limits to prevent resource exhaustion

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from wshobson/agents · top by installs.

npx skills add https://github.com/wshobson/agents

Browse all from wshobson/agents

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 39.5K
License LICENSE
Default branch main
Open issues 4
Status Active

History

  1. First seen on skills.sh
  2. First recorded snapshot · 18,200 installs