reflowprobe

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxAttempts is the bounded retry budget for throttled probe operations.
	MaxAttempts = 3
	// RetryDelay is the context-aware delay between throttled probe attempts.
	RetryDelay = 10 * time.Millisecond
)

Variables

This section is empty.

Functions

func Run

func Run[T any](ctx context.Context, limiter Limiter, op func(context.Context) (T, error)) (T, error)

Run executes op under limiter control and retries throttled provider results.

Types

type Limiter

type Limiter interface {
	Acquire(context.Context) (func(), error)
	ObserveProviderResult(error)
}

Limiter is the concurrency limiter surface required by probe retries.

Jump to

Keyboard shortcuts

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