pub fn try_lock<T>(mutex: &Mutex<T>) -> Result<MutexGuard<'_, T>>Expand description
Try to lock a mutex using std::sync::Mutex without blocking.
pub fn try_lock<T>(mutex: &Mutex<T>) -> Result<MutexGuard<'_, T>>Try to lock a mutex using std::sync::Mutex without blocking.