// rangeMap iterates over the map.
rangeMap iterates over the map.
// rangeMap iterates over the map .
func (m *sharedMap) rangeMap(fn func(seqID int32, msg EventHandler)) {
	for _, shard := range m.shared {
		shard.Lock()
		for k, v := range shard.msgs {
			fn(k, v)
		}
		shard.Unlock()
	}
}
func ( m * sharedMap ) rangeMap ( fn func ( seqID int32 , msg EventHandler ) ) { for _ , shard := range m . shared { shard . Lock ( ) for k , v := range shard . msgs { fn ( k , v ) } shard . Unlock ( ) } }
rangeMap iterates over the map.
rangeMap iterates over the map .