pub fn lock<T>(mutex: &Mutex<T>) -> MutexGuard<'_, T>Expand description
Locks mutex, taking the data even when a panicking thread poisoned it.
pub fn lock<T>(mutex: &Mutex<T>) -> MutexGuard<'_, T>Locks mutex, taking the data even when a panicking thread poisoned it.