Skip to main content

read_adaptive

Function read_adaptive 

Source
pub fn read_adaptive<T>(
    lock: &Arc<RwLock<T>>,
    context: &str,
    base: Duration,
) -> Option<OwnedRwLockReadGuard<T>>
where T: Send + Sync + 'static,
Expand description

read with another base budget, still stretched by the I/O health. read is this with the 10 s base; a test uses a short base to take the same contended path without waiting 10–20 s.