concurrent-map icon indicating copy to clipboard operation
concurrent-map copied to clipboard

当cmap中没有元素长度为0时,使用clear方法时,代码会hang住

Open roseqin368 opened this issue 2 years ago • 2 comments

排查记录:所以在使用clear方法时,先判断长度,长度为零不用动态清除数据

roseqin368 avatar Nov 22 '23 08:11 roseqin368

@roseqin368 可以给下版本、复现代码吗?我没有复现出来

版本: v2.0.1

func main() {
	m := camp.New[string]()
	m.Clear()
	log.Print("ok")
}

helloteemo avatar May 08 '24 09:05 helloteemo