StaleLockPolicy.age constructor

const StaleLockPolicy.age(
  1. Duration staleAfter
)

Reclaims once the lock file's modified time is older than staleAfter.

Dart reads mtime back at whole-second resolution (dart-lang/sdk#51937), so staleAfter should stay comfortably above one second.

Implementation

const factory StaleLockPolicy.age(Duration staleAfter) = _AgePolicy;