wait

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 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 PollImmediateUntil added in v2.10.1

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

PollImmediateUntil tries a condition until stopped by the context.

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