摘要: 工作池模式(提交10个任务给n个goroutine池处理) package main import ( "fmt" "sync" "time" "github.com/panjf2000/ants" ) // 模拟一个需要被处理的任务 func myTask(callName string, i i 阅读全文
posted @ 2025-10-14 08:40 CHHC 阅读(6) 评论(0) 推荐(0)