Documentation ¶
Overview ¶
* @Author: Wangjun * @Date: 2021-05-15 22:43:20 * @LastEditTime: 2022-08-23 10:33:01 * @LastEditors: Wangjun * @Description: * @FilePath: \fan_wind_powerd:\go\src\gitee.com\haodreams\golib\wrap\wrap.go * hnxr
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WaitGroupWrapper ¶
WaitGroupWrapper .
func NewWaitGroupWrapper ¶
func NewWaitGroupWrapper(maxThread int) *WaitGroupWrapper
NewWaitGroupWrapper 支持设置最大线程数的wg
func (*WaitGroupWrapper) Wrap ¶
func (m *WaitGroupWrapper) Wrap(cb func())
Wrap cb 回调函数 回调函数需要注意的是 回调函数内部的变量是引用变量,需要注意创建新变量复制
Click to show internal directories.
Click to hide internal directories.