concurrent

package
v0.0.0-...-e2be882 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Async

func Async(exec func())

Types

type Assertion

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

func NewAssertion

func NewAssertion(expected int) *Assertion

func (*Assertion) Assert

func (a *Assertion) Assert(t *testing.T)

func (*Assertion) Expect

func (a *Assertion) Expect(v interface{})

type Counter

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

Counter is a synchronous counter for tracking events and synchronising progress.

func NewCounter

func NewCounter(waitGroup *sync.WaitGroup) *Counter

NewCounter creates a new counter.

func (*Counter) Get

func (c *Counter) Get() int

Get returns the current count.

func (*Counter) Track

func (c *Counter) Track(v interface{})

Track increments the counter by one and potentially adds the object to it's memory.

func (*Counter) Values

func (c *Counter) Values() []interface{}

Values returns the tracked values.

Jump to

Keyboard shortcuts

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