Skip to main content

try_rwlock_read_with_timeout

Function try_rwlock_read_with_timeout 

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

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