eager

package
v2.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MPL-2.0 Imports: 3 Imported by: 49

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 Lock

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

func New

func New() *Lock

func (*Lock) Lock

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

func (*Lock) LockWithRetries

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

Jump to

Keyboard shortcuts

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