keyedmutex

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

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