MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / Delete

Method Delete

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

Source from the content-addressed store, hash-verified

37}
38
39func (sm *SyncMap[T]) Delete(key string) {
40 sm.lock.Lock()
41 defer sm.lock.Unlock()
42 delete(sm.m, key)
43}
44
45func (sm *SyncMap[T]) SetUnless(key string, value T) bool {
46 sm.lock.Lock()

Callers 2

DeleteJobFunction · 0.45
TestSyncMap_DeleteFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestSyncMap_DeleteFunction · 0.36