pub fn recover_lock<'a, T>(
result: LockResult<MutexGuard<'a, T>>,
ctx: &str,
) -> MutexGuard<'a, T>where
T: ?Sized,Expand description
Acquire a mutex guard, recovering from a poisoned mutex rather than propagating an error. A panicking thread does not permanently break a shared resource; we simply take ownership of the inner value and log a warning so that contention hot-spots can be identified.