Safe to refresh map object in Go concurrent environment?

后端 未结 0 1327
故里飘歌
故里飘歌 2020-12-22 10:27

I am curious whether the following code is appropriate:

var accessCount = make(map[string]int)

func makeRefreshTicker(refreshSecs time.Duration) {
    ticker         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题