waitGroup

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WithTimeout added in v1.0.14

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

func New

func New() *WithTimeout

新建waitGroup

func (*WithTimeout) Done added in v1.0.14

func (w *WithTimeout) Done(sn int)

完成一个

func (*WithTimeout) Init added in v1.0.14

func (w *WithTimeout) Init(count int)

重置计数

func (*WithTimeout) Reset added in v1.0.14

func (w *WithTimeout) Reset(sn int)

重置计数,返回当前序号

func (*WithTimeout) Wait added in v1.0.14

func (w *WithTimeout) Wait(timeout time.Duration) (count int, isTimeout bool)

等待结束

Jump to

Keyboard shortcuts

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