|
|
|
|
|
by v_lisivka
2603 days ago
|
|
Concurrency in Rust is extremely easy, because it safe by design. Just import rayon crate and change iter() to par_iter() [1]. Compiler will point out to problems, e.g. it will not allow to send a type, which cannot be used concurrently, until it will be wrapped by Arc (atomic reference counter). [1]: https://docs.rs/rayon/1.0.3/rayon/ |
|