Skip to main content

lock_or_recover

Function lock_or_recover 

Source
pub fn lock_or_recover<'a, T>(mutex: &'a Mutex<T>) -> MutexGuard<'a, T>
Expand description

Lock a mutex, recovering the inner value if the mutex was poisoned.