trylock

package
v0.0.0-...-47f30e4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnLock = 0
	Locked = 1
)

Variables

This section is empty.

Functions

func IsErrGetLockTimeOut

func IsErrGetLockTimeOut(err error) bool

Types

type TryMutexLocker

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

func NewAtomicMutex

func NewAtomicMutex() TryMutexLocker

Jump to

Keyboard shortcuts

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