Skip to main content

write_recover

Function write_recover 

Source
pub fn write_recover<T>(lock: &RwLock<T>) -> RwLockWriteGuard<'_, T>
Expand description

获取 RwLock 写锁,中毒时恢复(语义同 lock_recover)