commit | 0506d69f5564c56e25797bf7183c28921d4c6360 | [log] [tgz] |
---|---|---|
author | Prashant Varanasi <github@prashantv.com> | Thu Jun 08 17:20:07 2017 -0700 |
committer | GitHub <noreply@github.com> | Thu Jun 08 17:20:07 2017 -0700 |
tree | 0ab2597a513800d3ab03d7b60d6cc6ac898cfb89 | |
parent | 3c3f2a99a14d91ec4b1b9f2b7658de4ba60c95cb [diff] |
Add .codecov with status checking for 100% coverage (#30)
Simple wrappers for primitive types to enforce atomic access.
go get -u go.uber.org/atomic
The standard library‘s sync/atomic
is powerful, but it’s easy to forget which variables must be accessed atomically. go.uber.org/atomic
preserves all the functionality of the standard library, but wraps the primitive types to provide a safer, more convenient API.
var atom atomic.Uint32
atom.Store(42)
atom.Sub(2)
atom.CAS(40, 11)
See the documentation for a complete API specification.
Stable.