Go 语言标准库中,atomic.Value提供了“原子性”的存储( Store )和加载( Load )任意类型的功能。这篇博客先探索了它被提出来的历史缘由。然后由浅入深的介绍了它的使用姿势,以及内部实现。让大家不仅知其然,还能知其所以然。
atomic.Value
围观地址: http://blog.betacat.io/post/golang-atomic-value-exploration/