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

Function backingSet

packages/effect/src/unstable/cluster/internal/resourceMap.ts:132–138  ·  view source on GitHub ↗
(map: BackingMap<K, A, E>, key: K, entry: Entry<A, E>)

Source from the content-addressed store, hash-verified

130 return map.map.get(key)
131}
132const backingSet = <K, A, E>(map: BackingMap<K, A, E>, key: K, entry: Entry<A, E>): void => {
133 if (map._tag === "Equal") {
134 MutableHashMap.set(map.map, key, entry)
135 } else {
136 map.map.set(key, entry)
137 }
138}
139const backingDelete = <K, A, E>(map: BackingMap<K, A, E>, key: K): void => {
140 if (map._tag === "Equal") {
141 MutableHashMap.remove(map.map, key)

Callers 1

getMethod · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected