Skip to content

stonear/retry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retry

Go Reference

Very simple Go package to retry a function using exponential backoff algorithm.

Installation

go get github.com/stonear/retry

Usage

import "github.com/stonear/retry"

// Define your function
func yourFunction() error {
    // Your code here
    return nil
}

// Call the Retry function
err := retry.Retry(yourFunction, time.Second, 5)
if err != nil {
    // Handle the error
}

Contributing

Contributions are welcome. Please open a pull request with your changes.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages