(oref: string, createIfMissing = true)
| 191 | } |
| 192 | |
| 193 | function getWaveObjectValue<T extends WaveObj>(oref: string, createIfMissing = true): WaveObjectValue<T> { |
| 194 | let wov = waveObjectValueCache.get(oref); |
| 195 | if (wov === undefined && createIfMissing) { |
| 196 | wov = createWaveValueObject(oref, true); |
| 197 | waveObjectValueCache.set(oref, wov); |
| 198 | } |
| 199 | return wov; |
| 200 | } |
| 201 | |
| 202 | function loadAndPinWaveObject<T extends WaveObj>(oref: string): Promise<T> { |
| 203 | const wov = getWaveObjectValue<T>(oref); |
no test coverage detected