lock

package
v0.0.0-...-e06565c Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GranularityLock

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

func NewGranularityLock

func NewGranularityLock() *GranularityLock

func (*GranularityLock) Lock

func (l *GranularityLock) Lock(key string)

func (*GranularityLock) TryLock

func (l *GranularityLock) TryLock(key string) bool

func (*GranularityLock) Unlock

func (l *GranularityLock) Unlock(key string)

Jump to

Keyboard shortcuts

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