Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
Lock uses a file lock to coordinate access to resources shared with other processes. Callers are responsible for preventing races within a process. Lock applies advisory locks on Linux and macOS and is therefore unreliable on these platforms when several processes concurrently try to acquire the lock.
Click to show internal directories.
Click to hide internal directories.