async fn flush_disk(
    disk_state: Rc<RwLock<DiskState>>,
    timer: TimerAsync<Timer>,
    armed: Rc<RefCell<bool>>
) -> Result<(), ControlError>
Expand description

Periodically flushes the disk when the given timer fires.