retry

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBackoff = wait.Backoff{
	Steps:    5,
	Duration: 200 * time.Millisecond,
	Factor:   2.0,
	Jitter:   0.1,
}

Functions

func RunRetryWithConcurrency

func RunRetryWithConcurrency(ctx context.Context, concurrency int, tasks []WrapperTask) error

Types

type WrapperTask

type WrapperTask struct {
	Task       func(ctx context.Context) error
	Backoff    wait.Backoff
	RetryCheck func(error) bool
}

Jump to

Keyboard shortcuts

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