@ -299,6 +299,9 @@ func (n *normal) Iterator(handleFunc IteratorFunc) {
n.RLock()
defer n.RUnlock()
for key, val := range n.data {
handleFunc(key, val)
if !handleFunc(key, val) {
// 终止迭代
break
}
The note is not visible to the blocked user.