2025年7月15日

go协程池

摘要: package main import ( "fmt" "sync" "time" ) type Task struct { ID int Run func() error } type Pool struct { taskChan chan Task workerNum int wg sync.W 阅读全文

posted @ 2025-07-15 14:37 木林coder 阅读(8) 评论(0) 推荐(0)

导航