poll

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTimedOut = errors.New("poll: timed out")
)

Functions

func Poll

func Poll(ctx context.Context, interval, timeout time.Duration, fn Func) error

func PollImmediate

func PollImmediate(ctx context.Context, interval, timeout time.Duration, fn Func) error

Types

type Func

type Func func(ctx context.Context) (done bool, err error)

Jump to

Keyboard shortcuts

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