Documentation
¶
Overview ¶
Package keylock provides per-key mutual-exclusion locks that honor context cancellation. A KeyMap[K] is a process-wide map of locks keyed by K; Acquire returns once the slot is free or ctx fires.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyMap ¶
type KeyMap[K comparable] struct { // contains filtered or unexported fields }
KeyMap holds one lock per key value, allocated on first use.
Click to show internal directories.
Click to hide internal directories.