MCPcopy 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
60func (m *Map[K, V]) CompareAndDelete(key K, old V) (deleted bool) {
61 return m.m.CompareAndDelete(key, old)
62}
63
64//nolint:forcetypeassert
65func (m *Map[K, V]) Swap(key K, value V) (previous any, loaded bool) {

Callers 1

cleanupStreamIfIdleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected