Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
39
func
(sm *SyncMap[T]) Delete(key string) {
40
sm.lock.Lock()
41
defer
sm.lock.Unlock()
42
delete(sm.m, key)
43
}
44
45
func
(sm *SyncMap[T]) SetUnless(key string, value T) bool {
46
sm.lock.Lock()
Callers
2
DeleteJob
Function · 0.45
TestSyncMap_Delete
Function · 0.45
Calls
no outgoing calls
Tested by
1
TestSyncMap_Delete
Function · 0.36