摘要: 方式1 package main import ( "fmt" "sync" "time" ) func doWork(id int, resultChan chan<- int, wg *sync.WaitGroup) { defer wg.Done() // 表示goroutine完成 time 阅读全文
posted @ 2024-12-03 09:51 朝阳1 阅读(26) 评论(0) 推荐(0)