原书出处
Go语言精进之路 _ 从新手到高手的编程思想,方法和技巧 = Go programming from beginners
range jobs { wg.Add(1) go func(j int) {
active <- struct{}{} log.Printf("handle job: %d\n", j) time.Sleep(2 * time.Second) <-active wg.Done() }(j) } w
g.Wait() } 上面的示例创建了一组goroutine来处理job,同一时
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Go语言精进之路 _ 从新手到高手的编程思想,方法和技巧 = Go programming from beginners/_epub-src/Text/Chapter34_0002.xhtml
EPUB SHA-256:ed420a18343af13da5588084e52b5c80baf71e64b3a9b7abcfbaa002f7e4d02f