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

Function backingGet

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

Source from the content-addressed store, hash-verified

124}
125
126const backingGet = <K, A, E>(map: BackingMap<K, A, E>, key: K): Entry<A, E> | undefined => {
127 if (map._tag === "Equal") {
128 return MutableHashMap.get(map.map, key).valueOrUndefined
129 }
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)

Callers 3

hasUnsafeMethod · 0.85
getMethod · 0.85
removeMethod · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected