MCPcopy
hub / github.com/bsm/redislock / RetryStrategy

Interface RetryStrategy

retry.go:9–12  ·  view source on GitHub ↗

RetryStrategy allows to customise the lock retry strategy.

Source from the content-addressed store, hash-verified

7
8// RetryStrategy allows to customise the lock retry strategy.
9type RetryStrategy interface {
10 // NextBackoff returns the next backoff duration.
11 NextBackoff() time.Duration
12}
13
14type linearBackoff time.Duration
15

Callers 6

TestNoRetryFunction · 0.65
TestLinearBackoffFunction · 0.65
TestExponentialBackoffFunction · 0.65
TestLimitRetryFunction · 0.65
withRetryFunction · 0.65
NextBackoffMethod · 0.65

Implementers 2

limitedRetryretry.go

Calls

no outgoing calls

Tested by

no test coverage detected