Rust Concurrency

Pick the concurrency model from the workload shape — rayon for data parallelism, scoped threads for borrowed stack data, channels for handoff, shared state last — and use the weakest correct atomic ordering. Use when writing or reviewing threaded Rust, when Mutex, RwLock, atomics, or manual Send/Sync appear, when a deadlock or data race is suspected, or when the user asks how to parallelize Rust code.

rewrite-rs f050602 2 files · 5.1 KB Updated

File contents

rewrite-rs/skills/tree/main/skills/rust/rust-concurrency commit f0506022fb

Frequently asked questions

npx skillmds@latest add rewrite-rs/rust-concurrency