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

Function WithTimeoutFactor

redsync.go:120–124  ·  view source on GitHub ↗

WithTimeoutFactor can be used to set the timeout factor. The default value is 0.05.

(factor float64)

Source from the content-addressed store, hash-verified

118// WithTimeoutFactor can be used to set the timeout factor.
119// The default value is 0.05.
120func WithTimeoutFactor(factor float64) Option {
121 return OptionFunc(func(m *Mutex) {
122 m.timeoutFactor = factor
123 })
124}
125
126// WithGenValueFunc can be used to set the custom value generator.
127func WithGenValueFunc(genValueFunc func() (string, error)) Option {

Callers

nothing calls this directly

Calls 1

OptionFuncFuncType · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…