MCPcopy Create free account
hub / github.com/effect-app/libs / setAtomQueryMetadata

Function setAtomQueryMetadata

packages/vue/src/atomQuery.ts:277–287  ·  view source on GitHub ↗
(
  atom: Atom.Atom<AsyncResult.AsyncResult<A, E>>,
  opts: AtomQueryOptions = {}
)

Source from the content-addressed store, hash-verified

275
276const takeAtomQueryParentSpan = <A, E>(atom: Atom.Atom<AsyncResult.AsyncResult<A, E>>) => {
277 const target = atomSpanTarget(atom)
278 const span = atomQueryParentSpans.get(target)
279 if (span !== undefined) atomQueryParentSpans.delete(target)
280 return span
281}
282
283const setAtomQueryParentSpan = <A, E>(
284 atom: Atom.Atom<AsyncResult.AsyncResult<A, E>>,
285 span: Tracer.AnySpan
286) => {
287 atomQueryParentSpans.set(atomSpanTarget(atom), span)
288}
289
290export const captureAtomQueryParentSpan = <A, E>(

Callers 3

withQueryOptionsFunction · 0.85
buildQueryFamilyFunction · 0.85
buildStreamQueryFamilyFunction · 0.85

Calls 3

staleTimeMsOfFunction · 0.85
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…