retry

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Try

func Try(function func() (bool, error), timeout time.Duration) error

Types

type Until

type Until struct {
	Condition func(body []byte) bool
	Timeout   time.Duration
}

type UntilWithError added in v0.5.1

type UntilWithError struct {
	Condition func(body []byte) (bool, error)
	Timeout   time.Duration
}

Jump to

Keyboard shortcuts

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