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.