← 返回卡片

原书出处

精通 Go(Mastering Go 中文版)

169 09.3 优雅地结束goroutines

核验版本的摘录快照 · 导入于 2026-11-06T05:16:05.277Z

roup) for i := 0; i < count; i++ { waitGroup.Add(1) go func(x int) { defer waitGroup.Done() fmt.Printf("%d ", x) }(i) }

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/精通 Go(Mastering Go 中文版)/_epub-src/09.3.html

EPUB SHA-256:0d52179a26f231568b311cf079e550da691bada67bb8d8be008b7940dd2c0848