Skip to main content

try_lock

Function try_lock 

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

Try to lock a mutex using std::sync::Mutex without blocking.