Skip to main content

Module lock

Module lock 

Source
Expand description

Cross-process serialization for registry-cache state mutations.

Ported from internal/registrycache/lock.go.

Enums§

LockError
Errors from acquiring the registry-cache flock.

Functions§

with_lock
Acquires an exclusive flock on the registry-cache lock file for the duration of f. The lock file is created on first use. Released when f returns (including via panic-unwind, since the underlying file descriptor is closed by Drop).