(
private readonly fetcher: IrFetcher,
/** Wird genau einmal je echter Serveranfrage gerufen. */
private readonly onFetch: () => void = () => undefined,
private readonly capacity: number = IR_CACHE_CAPACITY,
)
| 76 | private readonly inFlight = new Map<string, Promise<IrEntry>>(); |
| 77 | |
| 78 | constructor( |
| 79 | private readonly fetcher: IrFetcher, |
| 80 | /** Wird genau einmal je echter Serveranfrage gerufen. */ |
| 81 | private readonly onFetch: () => void = () => undefined, |
| 82 | private readonly capacity: number = IR_CACHE_CAPACITY, |
| 83 | ) {} |
| 84 | |
| 85 | /** Was schon dasteht, ohne zu fragen. */ |
| 86 | peek(symbol: SymbolRef): IrEntry | undefined { |
nothing calls this directly
no outgoing calls
no test coverage detected