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

Function runAll

packages/effect/src/RequestResolver.ts:1147–1158  ·  view source on GitHub ↗
(entries, key)

Source from the content-addressed store, hash-verified

1145 return makeWith({
1146 ...self,
1147 runAll(entries, key) {
1148 return Effect.onExit(self.runAll(entries, key), () => {
1149 let toRemove = MutableHashMap.size(cache) - options.capacity
1150 if (toRemove <= 0) return Effect.void
1151 for (const k of MutableHashMap.keys(cache)) {
1152 MutableHashMap.remove(cache, k)
1153 toRemove--
1154 if (toRemove <= 0) break
1155 }
1156 return Effect.void
1157 })
1158 },
1159 preCheck(entry) {
1160 const ocached = MutableHashMap.get(cache, entry.request)
1161 if (ocached._tag === "None") {

Callers

nothing calls this directly

Calls 3

runAllMethod · 0.80
sizeMethod · 0.65
removeMethod · 0.45

Tested by

no test coverage detected