package
Version:
v0.0.6
Opens a new window with list of versions in this module.
Published: Aug 30, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewGPool 创建并初始化具有指定容量的新GPool。
AddJob 将新作业添加到池中。如果池已满,它将阻塞,直到有工作人员可用。
RunningCount 返回当前正在运行的任务数。
func (p *GPool) Shutdown()
Shutdown 取消所有挂起的任务,并等待正在运行的任务完成。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.