⚛️ Rust Atomics
= lock-free, concurrent types
Use
-> Multiple threads can read/write atomic values at once without data races via exposed atomic methods
- e.g.:
let do_continue = Arc::new(AtomicBool::new(false))
- ->
do_continue
is an smart ARC pointer, pointing to a shareable atomic bool
- ->