Versions in this module Expand all Collapse all v0 v0.4.6 Oct 20, 2026 v0.4.5 Oct 16, 2026 Changes in this version + type LockReason string + const ReasonLockAcquireError + const ReasonLockContended + const ReasonLockTimeout + const ReasonNone + func Acquire(path string, timeout time.Duration) (release func(), reason LockReason, err error) + func AcquireAt(dir *os.File, name string, timeout time.Duration) (release func(), reason LockReason, err error) + func TryAcquire(path string) (release func(), reason LockReason, err error)