Skip to main content

lock

Function lock 

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

Lock a mutex using std::sync::Mutex, recovering from poisoning.