( v: CachedValue<T>, generation: number | undefined, fn: () => Promise<T> )
| 17 | import { isExpression } from './type-guards.js'; |
| 18 | import { failClosedCounts } from './store-guard.js'; |
| 19 | import { |
| 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 | */ |
| 31 | export type CachedCell<T> = { |
| 32 | value: T | null; |