WithTimeoutFactor can be used to set the timeout factor. The default value is 0.05.
(factor float64)
| 118 | // WithTimeoutFactor can be used to set the timeout factor. |
| 119 | // The default value is 0.05. |
| 120 | func 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. |
| 127 | func WithGenValueFunc(genValueFunc func() (string, error)) Option { |
nothing calls this directly
no test coverage detected
searching dependent graphs…