wait

package
v0.0.0-...-fd058c7 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WaitGroupN

type WaitGroupN struct {
	sync.WaitGroup
	sync.Mutex
	N int
}

WaitGroupN is a custom wait group that tracks the number added so it can be stopped.

func (*WaitGroupN) Add

func (wg *WaitGroupN) Add(n int)

Add adds to counter.

func (*WaitGroupN) Done

func (wg *WaitGroupN) Done()

Done removes from counter.

func (*WaitGroupN) Stop

func (wg *WaitGroupN) Stop()

Stop calls done on remaining counter.

Jump to

Keyboard shortcuts

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