1
0
mirror of https://github.com/golang/go synced 2024-11-22 15:44:53 -07:00
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_test.go
cond.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_bench_test.go
map_reference_test.go
map_test.go
map.go sync: name the Map.CompareAndSwap return value 2024-03-21 00:52:58 +00:00
mutex_test.go
mutex.go
once_test.go
once.go
oncefunc_test.go
oncefunc.go
pool_test.go
pool.go runtime: migrate internal/atomic to internal/runtime 2024-03-25 19:53:03 +00:00
poolqueue.go
runtime2_lockrank.go
runtime2.go
runtime_sema_test.go
runtime.go
rwmutex_test.go
rwmutex.go
waitgroup_test.go
waitgroup.go