MCPcopy Index your code
hub / github.com/go-redsync/redsync / WithTries

Function WithTries

redsync.go:77–81  ·  view source on GitHub ↗

WithTries can be used to set the number of times lock acquire is attempted. The default value is 32.

(tries int)

Source from the content-addressed store, hash-verified

75// WithTries can be used to set the number of times lock acquire is attempted.
76// The default value is 32.
77func 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).

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…