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

Function backingSet

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

Source from the content-addressed store, hash-verified

107}
108
109const backingSet = <K, A, E>(map: BackingMap<K, A, E>, key: K, entry: Entry<A, E>): void => {
110 if (map._tag === "Referential") {
111 map.map.set(key, entry)
112 } else {
113 MutableHashMap.set(map.map, key, entry)
114 }
115}
116
117const backingDelete = <K, A, E>(map: BackingMap<K, A, E>, key: K): void => {
118 if (map._tag === "Referential") {

Callers 1

getMethod · 0.85

Calls 1

setMethod · 0.65

Tested by

no test coverage detected