proxy.golang.org : github.com/arsham/retry : v0.4.0
Package retry invokes a given function until it succeeds. It sleeps in between attempts based the DelayMethod. It is useful in situations that an action might succeed after a few attempt due to unavailable resources or waiting for a condition to happen. The default DelayMethod sleeps exactly the same amount of time between attempts. You can use the IncrementalDelay method to increment the delays between attempts. It gives a jitter to the delay to prevent Thundering herd problems. If the delay is 0 in either case, it does not sleep between tries.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/arsham/[email protected]
Published:
Indexed:
- github.com/davecgh/go-spew v1.1.1
- github.com/kr/text v0.2.0
- github.com/pkg/errors v0.9.1
- github.com/pmezard/go-difflib v1.0.0
- github.com/stretchr/testify v1.7.0
- gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
- gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b