Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mutex ¶
type Mutex[T comparable] struct { // contains filtered or unexported fields }
Mutex is the mutex with synchronized map it's for reducing unnecessary locks among different keys
func NewCustomizedMapMutex ¶
func NewCustomizedMapMutex[T comparable](mRetry int, mDelay, bDelay, factor, jitter float64) *Mutex[T]
NewCustomizedMapMutex returns a customized mapmutex
func NewMapMutex ¶
func NewMapMutex[T comparable]() *Mutex[T]
NewMapMutex returns a mapmutex with default configs
Click to show internal directories.
Click to hide internal directories.