Skip to main content

try_acquire_daemon_boot_guard_until

Function try_acquire_daemon_boot_guard_until 

Source
pub fn try_acquire_daemon_boot_guard_until(
    deadline: Instant,
) -> Result<Option<DaemonBootGuard>>
Expand description

Bounded, deadline-aware variant of acquire_daemon_boot_guard: attempts the SAME boot/recovery lock (lock_path) but gives up at deadline instead of blocking forever. For callers that need to detect “is a boot in progress right now” without risking an unbounded wait behind a wedged holder: e.g. khive-mcp’s confirm_genuinely_dead re-probing rounds, where DEAD_CONFIRM_ROUNDS must bound elapsed time, not just probe count.