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

Function reopened

packages/effect/src/ui/Query.ts:6813–6823  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6811 : compileTargets(runOptions.invalidates, optimistic)
6812 // Open streams need explicit invalidation; a patch alone doesn't reopen them.
6813 const reopened = (): Set<Entry> => {
6814 const hit = resolve(targets)
6815 if (declared === targets) return hit
6816 for (const entry of hit) {
6817 if (
6818 entry.live !== undefined &&
6819 !targetsHit(declared, entry.def.name, entry.def.tags, entry.argsKey)
6820 ) hit.delete(entry)
6821 }
6822 return hit
6823 }
6824 // A patch over an entry with no Success isn't registered, silently.
6825 const planned: Array<{ readonly entry: Entry; readonly patch: Patch }> = []
6826 for (const patch of optimistic) {

Callers 1

beginRunFunction · 0.85

Calls 3

targetsHitFunction · 0.85
resolveFunction · 0.70
deleteMethod · 0.65

Tested by

no test coverage detected