MCPcopy Create free account
hub / github.com/Effect-TS/effect / backingDelete

Function backingDelete

packages/cluster/src/internal/resourceMap.ts:117–123  ·  view source on GitHub ↗
(map: BackingMap<K, A, E>, key: K)

Source from the content-addressed store, hash-verified

115}
116
117const backingDelete = <K, A, E>(map: BackingMap<K, A, E>, key: K): void => {
118 if (map._tag === "Referential") {
119 map.map.delete(key)
120 } else {
121 MutableHashMap.remove(map.map, key)
122 }
123}

Callers 3

ResourceMapClass · 0.85
getMethod · 0.85
removeMethod · 0.85

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected