Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/songmu/retry
https://github.com/songmu/retry
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/songmu/retry
- Owner: Songmu
- License: mit
- Created: 2015-06-27T08:24:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-14T06:28:33.000Z (about 6 years ago)
- Last Synced: 2024-10-11T21:09:24.338Z (27 days ago)
- Language: Go
- Size: 15.6 KB
- Stars: 32
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
retry
=======[![Build Status](https://travis-ci.org/Songmu/retry.png?branch=master)][travis]
[![Coverage Status](https://coveralls.io/repos/Songmu/retry/badge.png?branch=master)][coveralls]
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license]
[![GoDoc](https://godoc.org/github.com/Songmu/retry?status.svg)](godoc)[travis]: https://travis-ci.org/Songmu/retry
[coveralls]: https://coveralls.io/r/Songmu/retry?branch=master
[license]: https://github.com/Songmu/retry/blob/master/LICENSE
[godoc]: https://godoc.org/github.com/Songmu/retry## Description
retry N times
It is golang porting of perl's [Sub::Retry](https://metacpan.org/release/Sub-Retry)
## Synopsis
err := retry.Retry(3, 1*time.Second, func() error {
// return error once in a while
})
if err != nil {
// error handling
}## Author
[Songmu](https://github.com/Songmu)