cherrySync

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WaitGroup

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

WaitGroup 封装 sync.WaitGroup,提供更简单的 API

func (*WaitGroup) Add

func (wg *WaitGroup) Add(fn func())

Add 添加一个非阻塞的任务,任务在新的 Go 程执行

func (*WaitGroup) Wait

func (wg *WaitGroup) Wait()

Wait 等待所有任务执行完成

Jump to

Keyboard shortcuts

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