You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, no fast way to get length of sync.Map. To get the length, we should use Range with iterating elements. Hopefully to add Len() to get the length.
// Len returns a size of the map.func (m*Map) Len() int {
ifm.dirty!=nil {
returnlen(m.dirty)
}
read:=m.loadReadOnly()
returnlen(read.m)
}
The text was updated successfully, but these errors were encountered:
Currently, no fast way to get length of sync.Map. To get the length, we should use Range with iterating elements. Hopefully to add Len() to get the length.
The text was updated successfully, but these errors were encountered: