wait

package
v2.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package wait provides functions for polling for condition changes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PollUntil

func PollUntil(ctx context.Context, fn ConditionFunc, interval time.Duration) error

PollUntil tries a condition until stopped by the context.

Types

type ConditionFunc

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

ConditionFunc returns true if the condition is satisfied, or an error if the loop should be aborted.

Jump to

Keyboard shortcuts

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