()
| 42 | } |
| 43 | |
| 44 | func (m *Map[K, V]) Length() int { |
| 45 | m.mu.RLock() |
| 46 | defer m.mu.RUnlock() |
| 47 | |
| 48 | return len(m.values) |
| 49 | } |
| 50 | |
| 51 | // LoadOrStore returns the existing value for key if present; otherwise it |
| 52 | // stores and returns value. The loaded result is true if the value was |
no outgoing calls