( atom: Atom.Atom<AsyncResult.AsyncResult<A, E>> )
| 259 | |
| 260 | const atomQueryMetadata = new WeakMap<Atom.Atom<AsyncResult.AsyncResult<any, any>>, AtomQueryMetadata>() |
| 261 | const atomQueryParentSpans = new WeakMap<Atom.Atom<AsyncResult.AsyncResult<any, any>>, Tracer.AnySpan>() |
| 262 | const atomQueryKeys = new WeakMap<Atom.Atom<AsyncResult.AsyncResult<any, any>>, ReadonlyArray<unknown>>() |
| 263 | |
| 264 | export const queryKeyForAtom = <A, E>( |
| 265 | atom: Atom.Atom<AsyncResult.AsyncResult<A, E>> |
| 266 | ): ReadonlyArray<unknown> | undefined => atomQueryKeys.get(atom) |
| 267 | |
| 268 | const atomSpanTarget = <A, E>(atom: Atom.Atom<AsyncResult.AsyncResult<A, E>>) => { |
| 269 | let target = atom |
| 270 | while (target.initialValueTarget !== undefined) { |
no test coverage detected
searching dependent graphs…