//! A poisoned lock is recovered, never propagated: a panic on one task is
//! reported once as `Closed { Internal }` (D2), and must not turn every
//! later engine-thread call into a second panic.
usestd::sync::{Mutex, MutexGuard, PoisonError};pub(crate)fnlock<T>(m:&Mutex<T>)->MutexGuard<'_, T>{
m.lock().unwrap_or_else(PoisonError::into_inner)}