write_arc_rwlock

Function write_arc_rwlock 

Source
pub fn write_arc_rwlock<T>(
    arc_rwlock: &Arc<RwLock<T>>,
) -> Option<RwLockWriteGuard<'_, T>>
Expand description

Helper function to write-lock an Arc<RwLock> and access its value Returns None if the lock is poisoned Note: This returns a guard, not a reference, so it cannot be used in keypaths directly