golang sync.Once

源码也很简单,使用mutex实现。

https://www.jianshu.com/p/b1ec55e0f383

posted @ 2020-04-02 17:13  kissrule  阅读(173)  评论(0)    收藏  举报