sync: add sync.Once, a proposed replacement for package once.
This implementation is simpler and more useful, since it can work with methods. R=rsc CC=golang-dev https://golang.org/cl/1864051
Showing
src/pkg/sync/once.go
0 → 100644
src/pkg/sync/once_test.go
0 → 100644
Please
register
or
sign in
to comment