Documentation ¶
Index ¶
- func PrintGoRoutines()
- func WaitGoRoutineWithFn(t testing.TB, fn any, opts ...func(*WaitOptions))
- func WithCheckInterval(checkInterval time.Duration) func(*WaitOptions)
- func WithMaxDuration(maxDuration time.Duration) func(*WaitOptions)
- func WithNumGoRoutines(numGoRoutines int) func(*WaitOptions)
- type WaitOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitGoRoutineWithFn ¶
func WaitGoRoutineWithFn(t testing.TB, fn any, opts ...func(*WaitOptions))
WaitGoRoutineWithFn waits for a go routine with the given function to appear within the duration.
func WithCheckInterval ¶ added in v1.25.0
func WithCheckInterval(checkInterval time.Duration) func(*WaitOptions)
func WithMaxDuration ¶ added in v1.25.0
func WithMaxDuration(maxDuration time.Duration) func(*WaitOptions)
func WithNumGoRoutines ¶ added in v1.25.0
func WithNumGoRoutines(numGoRoutines int) func(*WaitOptions)
Types ¶
Click to show internal directories.
Click to hide internal directories.