retry

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, retryAfter time.Duration, fn func() error) error

Do retries running function until it returns non-retryable error.

func Retryable

func Retryable(err error) error

Retryable returns retryable error.

Types

type RetryableError

type RetryableError struct {
	// contains filtered or unexported fields
}

RetryableError represents retryable error.

func (RetryableError) Error

func (e RetryableError) Error() string

Error returns string representation of error.

func (RetryableError) Unwrap

func (e RetryableError) Unwrap() error

Unwrap returns next error.

Jump to

Keyboard shortcuts

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