0
1
mirror of https://github.com/golang/go synced 2025-04-18 00:56:09 +00:00

sync: add WaitGroup.Go

Fixes 

Change-Id: I2a941275dd64ef858cbf02d31a759fdc5c082ceb
Reviewed-on: https://go-review.googlesource.com/c/go/+/662635
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Carlos Amedee <carlos@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
This commit is contained in:
qiulaidongfeng
2025-04-03 23:10:16 +08:00
committed by Gopher Robot
parent d164776615
commit 822031dffc
4 changed files with 60 additions and 2 deletions
api/next
doc/next/6-stdlib/99-minor/sync
src/sync

@ -0,0 +1,2 @@
[WaitGroup] has added a new method [WaitGroup.Go],
that makes the common pattern of creating and counting goroutines more convenient.