package
1.1.20
Repository: https://github.com/okian/servo.git
Documentation: pkg.go.dev

# Functions

Do keeps trying the function until the second argument returns false, or no error is returned, attempt is started at 1.
IsMaxRetries checks whether the error is due to hitting the maximum number of retries or not.
Limited try to do fn in limit times and will sleep in (logarithmic) duration of unit (millisecond, second,etc) and not more than unit * maxSleep.
WithCancel try to do fn until context will cancel or fn return nil and will sleep in (logarithmic) duration of unit (millisecond, second,etc) and not more than unit * maxSleep.

# Variables

MaxRetries is the maximum number of retries before bailing.

# Type aliases

Func represents functions that can be retried.