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

Function registerTargets

packages/effect/src/ui/Query.ts:6590–6595  ·  view source on GitHub ↗
(targets: ReadonlyArray<Target>)

Source from the content-addressed store, hash-verified

6588 // -- invalidation -----------------------------------------------------------
6589 /** Naming a query registers it, so its hydrated entries are decoded and matched exactly. */
6590 const registerTargets = (targets: ReadonlyArray<Target>): void => {
6591 for (const target of targets) {
6592 if (isQuery(target)) register(defOf(target))
6593 else if (target._tag === "Entry") register(defOf(target.query))
6594 }
6595 }
6596 /** Target resolution, written over the predicate: every entry it hits. A tag drops every raw entry. */
6597 const resolve = (targets: Targets): Set<Entry> => {
6598 const out = new Set<Entry>()

Callers 2

invalidateFunction · 0.85
beginRunFunction · 0.85

Calls 3

defOfFunction · 0.85
isQueryFunction · 0.70
registerFunction · 0.70

Tested by

no test coverage detected