Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ CompareAndDelete
Method
CompareAndDelete
coderd/util/syncmap/map.go:60–62 ·
view source on GitHub ↗
(key K, old V)
Source
from the content-addressed store, hash-verified
58
}
59
60
func
(m *Map[K, V]) CompareAndDelete(key K, old V) (deleted bool) {
61
return
m.m.CompareAndDelete(key, old)
62
}
63
64
//nolint:forcetypeassert
65
func
(m *Map[K, V]) Swap(key K, value V) (previous any, loaded bool) {
Callers
1
cleanupStreamIfIdle
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected