摘要: import ( "fmt" "sync" "time" ) type Task func() type ThreadPool struct { workerCount int taskQueue chan Task wg sync.WaitGroup } func NewThreadPool(wo 阅读全文
posted @ 2023-10-19 16:06 securitybob 阅读(72) 评论(0) 推荐(0) 编辑