Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SimpleDistributedTryLock ¶ added in v1.0.3
Types ¶
type CASCommand ¶
type Option ¶
type Option func(*options)
func WithScheduleFunc ¶
func WithScheduleFunc(f func()) Option
type TryMutexLocker ¶
func NewChMutex ¶
func NewChMutex() TryMutexLocker
func NewDistributedTryLocker ¶
func NewDistributedTryLocker(cmd CASCommand, key, value string, opts ...Option) TryMutexLocker
Click to show internal directories.
Click to hide internal directories.