Skip to main content

read_lock

Function read_lock 

pub fn read_lock<'a, T>(
    lock: &'a RwLock<T>,
    context: &'static str,
) -> Result<RwLockReadGuard<'a, T>, LaneError>
where T: ?Sized,
Expand description

Acquires a read lock, mapping poisoning to [LaneError::LockPoisoned].