go/src/sync
Austin Clements 960fa9bf66 sync: add examples for OnceValue and OnceValues
Updates #56102.

Change-Id: I2ee2dbc43b4333511d9d23752fdc574dfbf5f5bd
Reviewed-on: https://go-review.googlesource.com/c/go/+/481062
Reviewed-by: Andrew Gerrand <adg@golang.org>
Auto-Submit: Austin Clements <austin@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Joedian Reid <joedian@google.com>
2024-04-23 17:45:47 +00:00
..
atomic runtime: migrate internal/atomic to internal/runtime 2024-03-25 19:53:03 +00:00
cond.go sync: add available godoc link 2024-02-26 20:48:55 +00:00
cond_test.go
example_pool_test.go
example_test.go sync: add examples for OnceValue and OnceValues 2024-04-23 17:45:47 +00:00
export_test.go
map.go sync: name the Map.CompareAndSwap return value 2024-03-21 00:52:58 +00:00
map_bench_test.go sync: add Map.Clear 2024-02-01 15:34:22 +00:00
map_reference_test.go sync: add Map.Clear 2024-02-01 15:34:22 +00:00
map_test.go sync: add Map.Clear 2024-02-01 15:34:22 +00:00
mutex.go sync: add available godoc link 2024-02-26 20:48:55 +00:00
mutex_test.go
once.go sync: add available godoc link 2024-02-26 20:48:55 +00:00
once_test.go
oncefunc.go sync: do not unnecessarily keep alive functions wrapped by Once(Func|Value|Values) 2023-11-21 17:31:33 +00:00
oncefunc_test.go sync: do not unnecessarily keep alive functions wrapped by Once(Func|Value|Values) 2023-11-21 17:31:33 +00:00
pool.go runtime: migrate internal/atomic to internal/runtime 2024-03-25 19:53:03 +00:00
pool_test.go
poolqueue.go sync: simplify the code with atomic.Pointer 2024-02-26 18:12:29 +00:00
runtime.go
runtime2.go
runtime2_lockrank.go
runtime_sema_test.go
rwmutex.go sync: add available godoc link 2024-02-26 20:48:55 +00:00
rwmutex_test.go
waitgroup.go sync: add available godoc link 2024-02-26 20:48:55 +00:00
waitgroup_test.go