locker

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locker

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

func NewLocker

func NewLocker() *Locker

func (*Locker) ReadLock

func (locker *Locker) ReadLock(ctx context.Context, key any) error

func (*Locker) ReadUnlock

func (locker *Locker) ReadUnlock(key any)

func (*Locker) WriteLock

func (locker *Locker) WriteLock(ctx context.Context, key any) error

func (*Locker) WriteUnlock

func (locker *Locker) WriteUnlock(key any)

Jump to

Keyboard shortcuts

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