MCPcopy
hub / github.com/jesseduffield/lazygit / Delete

Method Delete

pkg/utils/thread_safe_map.go:32–37  ·  view source on GitHub ↗
(key K)

Source from the content-addressed store, hash-verified

30}
31
32func (m *ThreadSafeMap[K, V]) Delete(key K) {
33 m.mutex.Lock()
34 defer m.mutex.Unlock()
35
36 delete(m.innerMap, key)
37}
38
39func (m *ThreadSafeMap[K, V]) Keys() []K {
40 m.mutex.RLock()

Callers 9

excludeBlankColumnsFunction · 0.45
TestThreadSafeMapFunction · 0.45
dropMergeCommitFunction · 0.45
RemoveFunction · 0.45
RemoveKeyFunction · 0.45
removeMethod · 0.45
CallMethod · 0.45
RemoveMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestThreadSafeMapFunction · 0.36