waitgroup

package
v0.0.0-...-ce1c9ab Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Demo1

func Demo1()

func Demo2

func Demo2()

Types

type WaitGroup

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

WaitGroup 一个异步结构体

func NewPool

func NewPool(coreNum int) *WaitGroup

NewPool 生成一个工作池,coreNum限制

func (*WaitGroup) Add

func (ap *WaitGroup) Add(num int)

Add 添加

func (*WaitGroup) Done

func (ap *WaitGroup) Done()

Done 完结

func (*WaitGroup) Wait

func (ap *WaitGroup) Wait()

Wait 等待

Jump to

Keyboard shortcuts

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