flock

package
v0.292.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 8 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