Package gs
exposes some of sync
package's types and subpackages with a generic layer built on top.
Improved DevX (compile-time checks, and you avoid dealing with any
/interface{}
).
- singleflight
- atomic (partially for now, only for
atomic.Value
)
atomic.CloseSafeChan
is a chan wrapper that guarantees safe concurrent closing operations on the channel.