WithTries can be used to set the number of times lock acquire is attempted. The default value is 32.
(tries int)
| 75 | // WithTries can be used to set the number of times lock acquire is attempted. |
| 76 | // The default value is 32. |
| 77 | func WithTries(tries int) Option { |
| 78 | return OptionFunc(func(m *Mutex) { |
| 79 | m.tries = tries |
| 80 | }) |
| 81 | } |
| 82 | |
| 83 | // WithRetryDelay can be used to set the amount of time to wait between retries. |
| 84 | // The default value is rand(50ms, 250ms). |
nothing calls this directly
no test coverage detected
searching dependent graphs…