proxy.golang.org : github.com/arsham/retry : v0.1.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/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e
- github.com/pkg/errors v0.9.1
- github.com/stretchr/testify v1.6.1
- gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f