隨着 Go 1.19 的發佈,Go 語言團隊升級 sync/atomic, 在其中加入了 atomic.PointerT] 的新類型,也是第一個作爲全新 API 加入標準庫,支持泛型的數據類型,受到 Go 社區用戶的關注。同時,官方在 [Release Notes 中,也提及到這個 API 的加入,使得原子值使用更加簡單。特徵--atomic.Pointer 是泛型類。與 atomic.Value ⌘ [Read more](https://www.readfog.com/a/1708593111412871168)
隨着 Go 1.19 的發佈,Go 語言團隊升級 sync/atomic, 在其中加入了 atomic.PointerT] 的新類型,也是第一個作爲全新 API 加入標準庫,支持泛型的數據類型,受到 Go 社區用戶的關注。同時,官方在 [Release Notes 中,也提及到這個 API 的加入,使得原子值使用更加簡單。特徵--atomic.Pointer 是泛型類。與 atomic.Value ⌘ [Read more](https://www.readfog.com/a/1708593111412871168)