Help us shape the future of Go! Take the 2026 Go Developer Survey

flock

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLocked = errors.New("locked")

Functions

func Acquire

func Acquire(ctx context.Context, path string, timeout time.Duration) (release func() error, err error)

Acquire a lock on the given path.

The lock is released when the returned function is called.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL