syncretry

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RetryAttemptsError = errors.New("retry attempts error")
View Source
var RetryError = errors.New("retry error")

Functions

This section is empty.

Types

type Options

type Options struct {
	Delays []int
}

type SyncRetry

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

func NewSyncRetry

func NewSyncRetry(options *Options) *SyncRetry

func (*SyncRetry) Do

func (sq *SyncRetry) Do(f func() error) error

Jump to

Keyboard shortcuts

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