pub fn write<T: Send + Sync + 'static>(
lock: &Arc<RwLock<T>>,
context: &str,
) -> Option<OwnedRwLockWriteGuard<T>>Expand description
Acquire a write lock with an adaptive timeout based on I/O health.
Returns None on timeout (caller must provide graceful fallback).
Records a freeze event for self-healing if the timeout is hit.