test

package
v0.0.0-...-3852cca Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForCheckFuncOrTimeout

func WaitForCheckFuncOrTimeout(ctx context.Context, cfg config.Config, checkFunc CheckFn) error

WaitForCheckFuncOrTimeout Call this to ensure we wait until a check is reached, or time out

func WaitForCheckFuncWithValueOrTimeout

func WaitForCheckFuncWithValueOrTimeout[T any](ctx context.Context, cfg config.Config, checkFunc CheckFnNew[T]) (T, error)

WaitForCheckFuncWithValueOrTimeout Call this to ensure we wait until a check is reached, or time out, returning a value

Types

type CheckFn

type CheckFn func(cfg config.Config, ctx context.Context) error

CheckFn The prototype function for any check function without return value

type CheckFnNew

type CheckFnNew[T any] func(cfg config.Config, ctx context.Context) (T, error)

CheckFnNew The prototype function for any check function with return value

Jump to

Keyboard shortcuts

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