retry

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package retry provides retry methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LimitCount

func LimitCount(ctx context.Context, count int, interval time.Duration, f func() error, opName string) (err error)

LimitCount retries execute function with limit by numbers attempts. TODO(otabek@): Add example of usage the documentation.

func WithTimeout

func WithTimeout(ctx context.Context, interval, duration time.Duration, f func() error, opName string) (err error)

WithTimeout retries execute function in giving time duration. TODO(otabek@): Add example of usage the documentation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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