Categorygithub.com/go-zoox/retry
modulepackage
1.0.3
Repository: https://github.com/go-zoox/retry.git
Documentation: pkg.go.dev

# README

Retry - Catch Panic In Retries

PkgGoDev Build Status Go Report Card Coverage Status GitHub issues Release

Installation

To install the package, run:

go get github.com/go-zoox/retry

Getting Started

err := retry.Retry(
	func() {
		c++
		if c < 3 {
			panic("panic error")
		}
	},
	3,
	time.Millisecond,
)

License

GoZoox is released under the MIT License.

# Functions

Retry trys to run fn with times and interval.

# Variables

Version is the current version of the package.