testutil

package
v0.6.0-rc10 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncCounter

type AsyncCounter struct {
	// contains filtered or unexported fields
}

AsyncCounter is an async counter

func NewAsyncCounter

func NewAsyncCounter(size int) *AsyncCounter

NewAsyncCounter creates a new AsyncCounter

func (*AsyncCounter) Count

func (a *AsyncCounter) Count()

Count increments the counter

func (*AsyncCounter) Wait

func (a *AsyncCounter) Wait(total, timeoutSeconds int) error

Wait waits until the total is reached or the timeout happens

Jump to

Keyboard shortcuts

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