rust-concurrency

Installation
SKILL.md

Rust Concurrency Primitives

Source: https://docs.rs/tokio/latest/tokio/sync/, https://docs.rs/flume/latest/flume/, https://docs.rs/crossbeam/latest/crossbeam/, https://doc.rust-lang.org/std/sync/mpsc/index.html

Purpose

Comprehensive guide to Rust's concurrency primitives across std, Tokio, crossbeam, and flume. Covers channel selection, async and sync synchronization types, and common patterns for task coordination.

When to Use

  • Choosing the right channel type for your workload (MPSC, MPMC, broadcast, oneshot, watch)
  • Coordinating async tasks with Mutex, RwLock, Semaphore, Barrier, or Notify
  • Mixing sync and async channel communication (flume)
  • High-performance multi-threaded pipelines (crossbeam scoped threads, work-stealing deques)
  • Implementing request/response, fan-out, config propagation, or rate-limiting patterns

Basic Usage

Channel Quick-Select

Installs
1
First Seen
Jun 19, 2026