MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / cachedValueAsync

Function cachedValueAsync

src/compute-engine/boxed-expression/cache.ts:19–29  ·  view source on GitHub ↗
(
  v: CachedValue<T>,
  generation: number | undefined,
  fn: () => Promise<T>
)

Source from the content-addressed store, hash-verified

17import { isExpression } from './type-guards.js';
18import { failClosedCounts } from './store-guard.js';
19import {
20 forgetStackDependentAnswers,
21 noteStackDependentAnswer,
22 stackDependentAnswerCount,
23} from '../static-typing-view.js';
24
25/**
26 * One memoized answer, with everything that decides whether it may be served.
27 *
28 * A {@link CachedValue} holds two of these — see the composite-generation
29 * section of {@link cachedValue}.
30 */
31export type CachedCell<T> = {
32 value: T | null;

Callers

nothing calls this directly

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected