Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "1.0.0"
Version is the current version of the package.
Functions ¶
This section is empty.
Types ¶
type WaitGroup ¶
type WaitGroup struct {
// contains filtered or unexported fields
}
WaitGroup implements a simple goroutine pool.
func New ¶
New creates a waitgroup with a specific size (the maxium number of goroutines to run at the same time). If you use -1 as the size, all items will run concurrentlu (just like a normal sync.WaitGroup).
func (*WaitGroup) Add ¶
func (wg *WaitGroup) Add(fns ...func())
Add adds the function to the waitgroup.
func (*WaitGroup) PendingCount ¶
PendingCount returns the number of pending tasks.
Click to show internal directories.
Click to hide internal directories.