Skip to main content

try_rwlock_write_with_timeout

Function try_rwlock_write_with_timeout 

Source
pub async fn try_rwlock_write_with_timeout<'a, T>(
    name: impl Into<String>,
    lock: &'a Arc<RwLock<T>>,
    timeout: Duration,
) -> Result<(CheckResult, RwLockWriteGuard<'a, T>), CheckResult>
Expand description

Acquire a tokio::sync::RwLock write lock or fail.