Files
rust/library/std/src/sync
Samuel Tardieu ce1961bbfc Rollup merge of #144185 - purplesyringa:poisoning-wording, r=Amanieu
Document guarantees of poisoning

This mostly documents the current behavior of `Mutex` and `RwLock` (rust-lang/rust#143471) as imperfect. It's unlikely that the situation improves significantly in the future, and even if it does, the rules will probably be more complicated than "poisoning is completely reliable", so this is a conservative guarantee.

We also explicitly specify that `OnceLock` never poisons, even though it has an API similar to mutexes.

Fixes rust-lang/rust#143471 by improving documentation.

r? ``@Amanieu``
2025-08-02 11:24:22 +02:00
..
2025-07-02 20:17:29 +02:00
2025-07-01 10:54:33 -07:00
2025-07-29 10:32:15 +02:00
2025-07-02 20:17:29 +02:00
2025-07-19 19:25:59 +03:00
2025-05-21 08:07:43 +02:00