MCPcopy
hub / github.com/go-redsync/redsync / OptionFunc

FuncType OptionFunc

redsync.go:60–60  ·  view source on GitHub ↗

OptionFunc is a function that configures a mutex.

func(*Mutex)

Source from the content-addressed store, hash-verified

58
59// OptionFunc is a function that configures a mutex.
60type OptionFunc func(*Mutex)
61
62// Apply calls f(mutex)
63func (f OptionFunc) Apply(mutex *Mutex) {

Callers 11

WithExpiryFunction · 0.85
WithTriesFunction · 0.85
WithRetryDelayFunction · 0.85
WithSetNXOnExtendFunction · 0.85
WithRetryDelayFuncFunction · 0.85
WithDriftFactorFunction · 0.85
WithTimeoutFactorFunction · 0.85
WithGenValueFuncFunction · 0.85
WithValueFunction · 0.85
WithFailFastFunction · 0.85
WithShufflePoolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…