MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetEx

Method GetEx

pkg/util/ds/syncmap.go:32–37  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

30}
31
32func (sm *SyncMap[T]) GetEx(key string) (T, bool) {
33 sm.lock.Lock()
34 defer sm.lock.Unlock()
35 v, ok := sm.m[key]
36 return v, ok
37}
38
39func (sm *SyncMap[T]) Delete(key string) {
40 sm.lock.Lock()

Callers 3

runOutputLoopFunction · 0.80
TestSyncMap_GetExFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestSyncMap_GetExFunction · 0.64