wait

package
v0.0.0-...-3d2f39d Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForChan

func ForChan[T any](t *testing.T, ctx context.Context, ch chan T, nilVal T) T

ForChan waits for channel to receive data before ctx is done.

func ForCond

func ForCond(t *testing.T, ctx context.Context, eval func() bool)

ForCond waits for eval function to return true before ctx is done.

func ForGroup

func ForGroup(t *testing.T, ctx context.Context, wg *sync.WaitGroup)

ForGroup waits for a WaitGroup to resolve before ctx is done.

Types

This section is empty.

Jump to

Keyboard shortcuts

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