retry

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Retry support.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(retryCount int, f func() error, doRetryFuncs ...func(err error) bool) error

func CallWithBackoff added in v0.3.1

func CallWithBackoff(backoff []time.Duration, f func() error) error

func GetOne

func GetOne[T any](retryCount int, f func() (T, error), doRetryFuncs ...func(err error) bool) (T, error)

func GetOneCond added in v0.2.10

func GetOneCond[T any](retryCount int, f func() (T, error), doRetryFunc func(t T, err error) bool) (T, error)

func GetOneWithBackoff added in v0.3.1

func GetOneWithBackoff[T any](backoff []time.Duration, f func() (T, error)) (T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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