Re:Effective Rust
by sestep on Sunday March 02, 2025 @05:55PM
(#43236149)
The way to do this while avoiding race conditions seems to be `Arc::into_inner` or `Arc::get_mut`; for instance, the docs for `Arc::try_unwrap` mention a possible race condition, and recommend using `Arc::into_inner` to avoid it: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.tr...
[ Parent
| on HN ]
There are no comments on this comment yet.