retry

package
v0.0.0-...-53353bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package retry provides a facility for retrying function invocations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Function

func Function(jirix *jiri.X, fn func() error, task string, opts ...RetryOpt) error

Function retries the given function for the given number of attempts at the given interval.

Types

type AttemptsOpt

type AttemptsOpt int

type IntervalOpt

type IntervalOpt time.Duration

type RetryOpt

type RetryOpt interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL