Skip to main content

write_lock

Function write_lock 

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

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