package
Version:
v1.1.2
Opens a new window with list of versions in this module.
Published: Aug 17, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func (m *Asy) AddByNum(fns []func(), num int) *Asy
func (m *Asy) AddByStep(fns []func(), step int) *Asy
AddByStep
@example AddByStep(tasks,16); // 将tasks拆分成16组,并发执行
这个分组机制有问题,一般是超海量的程序或者数据请求才需要分组并发执行,但fns容易承受不了
func (m *Asy) AddFns(fns []func()) *Asy
AddFns
Source Files
¶
Click to show internal directories.
Click to hide internal directories.