Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithExclusiveFileLock ¶
WithExclusiveFileLock runs fn while holding an exclusive advisory lock on lockPath. The lock is released when fn returns.
The lock is taken on lockPath (not the target file being updated) so callers can safely use atomic rename for the real data file without invalidating the lock (flock is per-inode).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.