Rust Concurrency & Async Expert
Optimizes Rust concurrency and asynchronous code by resolving Send/Sync errors and implementing thread-safe architectural patterns.
The m07-concurrency skill provides deep domain expertise for Rust developers navigating the complexities of multi-threaded and asynchronous programming. It helps identify whether a workload is CPU-bound or I/O-bound, guides the selection of appropriate primitives like Arc, Mutex, or channels, and troubleshoots common compiler errors such as E0277. By utilizing a 'Trace Up' methodology, the skill ensures that concurrency fixes align with higher-level domain constraints in web, cloud-native, or financial applications while preventing common pitfalls like deadlocks and MutexGuard leakage across await points.
主要功能
01Implements efficient shared mutable state patterns using Arc, Mutex, and RwLock
02Identifies and prevents deadlocks and thread-safety anti-patterns
03Optimizes async performance by auditing blocking calls and lock holding durations
04Provides workload-specific guidance for choosing between rayon and tokio
05596 GitHub stars
06Resolves E0277 Send and Sync trait violations with architectural fixes
使用场景
01Parallelizing CPU-intensive tasks using rayon or std::thread
02Debugging 'Future is not Send' errors in high-concurrency web API handlers
03Designing thread-safe state management for microservices and cloud-native apps