StaleLockPolicy.processLiveness constructor

const StaleLockPolicy.processLiveness({
  1. required Duration staleAfter,
})

Reclaims a lock whose recorded process is dead, with an age backstop for a holder that leaked the lock while its process stayed alive (e.g. a hung sibling isolate sharing the PID). Pair with InterProcessLock.acquire's heartbeatInterval so the backstop measures idle time, not work time.

Implementation

const factory StaleLockPolicy.processLiveness({
  required Duration staleAfter,
}) = _ProcessLivenessPolicy;