Documentation ¶
Overview ¶
* @Author: drowningwhale 351231768@qq.com * @Date: 2023-10-08 13:45:50 * @LastEditors: drowningwhale 351231768@qq.com * @LastEditTime: 2023-10-08 14:06:48 * @FilePath: \go-course\TaskPool\task_pool.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Author: drowningwhale 351231768@qq.com * @Date: 2023-10-08 14:06:48 * @LastEditors: drowningwhale 351231768@qq.com * @LastEditTime: 2023-10-09 12:06:17 * @FilePath: \go-course\TaskPool\task_pool2.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskPool ¶
type TaskPool struct {
// contains filtered or unexported fields
}
func NewTaskPool ¶
NewTaskPool创建任务池 numG 是goroutine数量 capacity是缓存的容量