What problem does it solve?
This skill helps developers design, implement, and debug asynchronous Rust applications by providing production-ready patterns for task orchestration, inter-task communication, error handling, and graceful shutdown, reducing race conditions, deadlocks, and subtle runtime bugs.
Core Features & Use Cases
- Concurrent Task Management: Patterns for spawning, joining, limiting, and racing tasks to maximize throughput while controlling resource usage.
- Channel and Stream Communication: Guidance on using mpsc, broadcast, oneshot, watch, and stream combinators for safe message passing and backpressure.
- Error Handling & Shutdown: Strategies for typed errors, context propagation, timeouts, cancellation, and coordinated graceful shutdown in networked services.
- Use Case: Build a Tokio-based microservice that concurrently fetches data from multiple endpoints, aggregates results with bounded concurrency, and shuts down cleanly on SIGINT without leaking resources.
Quick Start
Ask the assistant to analyze your async Rust module and recommend concurrency, error-handling, and graceful shutdown improvements tailored for the Tokio runtime.