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

Method Has

pkg/generic_sync/map.go:134–137  ·  view source on GitHub ↗
(key K)

Source from the content-addressed store, hash-verified

132}
133
134func (m *MapOf[K, V]) Has(key K) bool {
135 _, ok := m.Load(key)
136 return ok
137}
138
139func (e *entry[V]) load() (value V, ok bool) {
140 p := e.p.Load()

Callers 1

HasStorageFunction · 0.45

Calls 1

LoadMethod · 0.95

Tested by

no test coverage detected