keyedmutex

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 2 Imported by: 0

README

keyedmutex

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyedMutex

type KeyedMutex[K comparable] struct {
	// contains filtered or unexported fields
}

func New

func New[K comparable]() KeyedMutex[K]

func (KeyedMutex[K]) Lock

func (m KeyedMutex[K]) Lock(key K)

func (KeyedMutex[K]) TryLock

func (m KeyedMutex[K]) TryLock(key K) bool

func (KeyedMutex[K]) Unlock

func (m KeyedMutex[K]) Unlock(key K)

Jump to

Keyboard shortcuts

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