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

Function setAtomQueryParentSpan

packages/vue/src/atomQuery.ts:254–259  ·  view source on GitHub ↗
(
  atom: Atom.Atom<AsyncResult.AsyncResult<A, E>>,
  span: Tracer.AnySpan
)

Source from the content-addressed store, hash-verified

252}
253
254const defaults = { staleTime: Duration.seconds(5), gcTime: Duration.minutes(5) }
255
256export interface AtomQueryMetadata {
257 readonly staleTimeMs: number
258}
259
260const atomQueryMetadata = new WeakMap<Atom.Atom<AsyncResult.AsyncResult<any, any>>, AtomQueryMetadata>()
261const atomQueryParentSpans = new WeakMap<Atom.Atom<AsyncResult.AsyncResult<any, any>>, Tracer.AnySpan>()
262const atomQueryKeys = new WeakMap<Atom.Atom<AsyncResult.AsyncResult<any, any>>, ReadonlyArray<unknown>>()

Callers 1

Calls 2

atomSpanTargetFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…