@@ -309,9 +309,7 @@ impl<T> OnceLock<T> {
|
309 | 309 | /// Gets the mutable reference of the contents of the cell, initializing |
310 | 310 | /// it with `f` if the cell was empty. |
311 | 311 | /// |
312 | | - /// Many threads may call `get_mut_or_init` concurrently with different |
313 | | - /// initializing functions, but it is guaranteed that only one function |
314 | | - /// will be executed. |
| 312 | + /// This method never blocks. |
315 | 313 | /// |
316 | 314 | /// # Panics |
317 | 315 | /// |
@@ -401,6 +399,8 @@ impl<T> OnceLock<T> {
|
401 | 399 | /// it with `f` if the cell was empty. If the cell was empty and `f` failed, |
402 | 400 | /// an error is returned. |
403 | 401 | /// |
| 402 | + /// This method never blocks. |
| 403 | + /// |
404 | 404 | /// # Panics |
405 | 405 | /// |
406 | 406 | /// If `f` panics, the panic is propagated to the caller, and |
|