Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

Deprecated. Use https://github.com/tinrab/kit instead.

Retry

A simple retry package for Go.

Usage

Retry 10 times.

err := retry.Do(10, thisFunctionMayFail)
if err != nil {
  log.Fatal(err)
}

Retry with a delay.

err := retry.DoSleep(10, 3 * time.Second, thisFunctionMayFail)
if err != nil {
  log.Fatal(err)
}

Retry forever.

retry.Forever(thisFunctionMayFail)

About

A simple retry package for Go.

Resources

License

Packages

No packages published

Languages