diff options
| author | Krushnal Patil <krushnalpatil1111@gmail.com> | 2026-03-09 01:31:02 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-10 20:06:37 -0700 |
| commit | e22dc6c86685aef76a9bb22ff186d4cd5a822027 (patch) | |
| tree | 0cb9e4077f7bb62ec9d95e6c64832ec763e83df0 /src/bytes/export_test.go | |
| parent | a95f60871f52f3701e596c07b0e7bf8a3b1619ed (diff) | |
| download | go-e22dc6c86685aef76a9bb22ff186d4cd5a822027.tar.xz | |
context: modernize AfterFunc example using WaitGroup.Go
The context.AfterFunc example currently uses the traditional
sync.WaitGroup pattern with Add and Done.
Update the example to use sync.WaitGroup.Go instead.
Fixes #78018
Change-Id: I079a773a6ec1c65f26af2bd8092067843adb1cd1
GitHub-Last-Rev: 9e648ae4241ca0647d3a501f7658d48100c180b8
GitHub-Pull-Request: golang/go#78020
Reviewed-on: https://go-review.googlesource.com/c/go/+/752880
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/bytes/export_test.go')
0 files changed, 0 insertions, 0 deletions
