try_lock

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CASCommand

type CASCommand interface {
	CAS(key, src, dst string) bool
}

type Option

type Option func(*options)

func WithScheduleFunc

func WithScheduleFunc(f func()) Option

type Schedule

type Schedule func()

type TryMutexLocker

type TryMutexLocker interface {
	Unlock()
	TryLock(duration time.Duration) error
}

func NewChMutex

func NewChMutex() TryMutexLocker

func NewDistributedTryLocker

func NewDistributedTryLocker(cmd CASCommand, key, value string, opts ...Option) TryMutexLocker

Jump to

Keyboard shortcuts

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