1 Star 0 Fork 3

Fengzhi/gkit

forked from menuiis/gkit 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ggroup.go 353 Bytes
一键复制 编辑 原始数据 按行查看 历史
SongZhibin97 提交于 2022-03-27 20:26 +08:00 . feat:ggroup
package goroutine
import "context"
type GGroup interface {
// ChangeMax 更改buffer大小
ChangeMax(m int64)
// AddTask 添加需要 `go function`
AddTask(f func()) bool
// AddTaskN 异步添加任务,有超时机制
AddTaskN(ctx context.Context, f func()) bool
// Shutdown 回收资源
Shutdown() error
// Trick debug
Trick() string
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fengzhi_1/gkit.git
git@gitee.com:fengzhi_1/gkit.git
fengzhi_1
gkit
gkit
b6285053065d

搜索帮助