Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[T comparable] interface { Lock(key T) Unlock(key T) }
Map is a map of mutexes whose locks are acquired in a FIFO order. The map is pruned automatically when all locks have been released for a key.
func NewMap ¶
func NewMap[T comparable]() Map[T]
Click to show internal directories.
Click to hide internal directories.