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)
Click to show internal directories.
Click to hide internal directories.