package
Version:
v0.3.0-rc1
Opens a new window with list of versions in this module.
Published: May 1, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package fslock provides advisory file locking for coordinating exclusive
access to shared resources across processes.
Lock represents an acquired advisory file lock.
Acquire acquires an exclusive advisory lock on the file at path, retrying
until timeout elapses. Returns an error if the lock cannot be acquired.
Release releases the lock and closes the file. The lock file is left on
disk so that concurrent waiters do not race on a deleted path.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.