poll

package
v0.0.0-...-b228686 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Poller

type Poller[Out any] struct {
	LastOutcome          Out
	Interval             time.Duration
	Timeout              time.Duration
	MaxConsecutiveErrors int

	OutcomeNillable bool
	OutcomeGetter   func() (Out, error)
	ConditionFunc   func(outcome Out) (bool, error)
	// contains filtered or unexported fields
}

func (*Poller[Out]) Poll

func (poller *Poller[Out]) Poll(ctx context.Context) error

Jump to

Keyboard shortcuts

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