locks

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEagerLockFailed = errors.New("eager lock: failed to acquire lock")
)

Functions

This section is empty.

Types

type EagerLock added in v1.0.9

type EagerLock struct {
	// contains filtered or unexported fields
}

func NewEager added in v1.0.9

func NewEager() *EagerLock

func (*EagerLock) Lock added in v1.0.9

func (e *EagerLock) Lock(key string, value int64) error

func (*EagerLock) LockWithRetries added in v1.0.9

func (e *EagerLock) LockWithRetries(key string, value int64) error

Jump to

Keyboard shortcuts

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