3 ms·
-race detects data races at runtime. Rust's borrow checker works at compile time. Borrow checking prevents data races by making it impossible for two threads to
by zelly 7y ago
-race detects data races at runtime. Rust's borrow checker works at compile time. Borrow checking prevents data races by making it impossible for two threads to have read/write access to the same memory. (But there are many ways around it.)