Skip to main content

with_state_timeout

Function with_state_timeout 

Source
pub fn with_state_timeout<F>(
    repo_root: &Path,
    home_override: Option<&Path>,
    lock_timeout_ms: u64,
    f: F,
) -> Result<StateV2, WorktreeError>
where F: FnOnce(&mut StateV2) -> Result<(), WorktreeError>,
Expand description

Like with_state but takes an explicit lock acquisition timeout.