MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / Clear

Method Clear

pkg/generic_sync/map.go:378–383  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

376}
377
378func (m *MapOf[K, V]) Clear() {
379 m.Range(func(key K, value V) bool {
380 m.Delete(key)
381 return true
382 })
383}
384
385func (m *MapOf[K, V]) missLocked() {
386 m.misses++

Callers

nothing calls this directly

Calls 2

RangeMethod · 0.95
DeleteMethod · 0.95

Tested by

no test coverage detected