keymutex

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyMutex

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

func New

func New() *KeyMutex

New creates a new key mutex

func (*KeyMutex) Lock

func (km *KeyMutex) Lock(key string)

Lock sets a lock on a specific key

func (*KeyMutex) Remove

func (km *KeyMutex) Remove(key string)

Remove removes a not needed mutex for a key.

func (*KeyMutex) Unlock

func (km *KeyMutex) Unlock(key string)

Unlock removes a lock from a specific key

Jump to

Keyboard shortcuts

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