(view: T, getter: () => CacheDataMap[T])
| 83 | }, 3 * SECOND) |
| 84 | |
| 85 | function setCacheGetter<T extends debug.DevtoolsMainView>(view: T, getter: () => CacheDataMap[T]) { |
| 86 | s.onCleanup(() => { |
| 87 | const data = getter() |
| 88 | nextShortCache = {view: view as any, data: data.short} |
| 89 | longCache.set(view, data.long) |
| 90 | clearShortCache() |
| 91 | }) |
| 92 | } |
| 93 | function getCache<T extends debug.DevtoolsMainView>( |
| 94 | view: T, |
| 95 | ): {[K in 'short' | 'long']: CacheDataMap[T][K] | null} { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…