MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Delete

Method Delete

internal/utils/sync/map_int.go:88–93  ·  view source on GitHub ↗
(k K)

Source from the content-addressed store, hash-verified

86}
87
88func (this *IntMap[K, V]) Delete(k K) {
89 var index = this.index(k)
90 this.lockers[index].Lock()
91 delete(this.m[index], k)
92 this.lockers[index].Unlock()
93}
94
95func (this *IntMap[K, V]) DeleteUnsafe(k K) {
96 var index = this.index(k)

Callers

nothing calls this directly

Calls 3

indexMethod · 0.95
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected