()
| 80 | // for retaining the cache once it is in use (retainCache), and releasing the cache |
| 81 | // once it is no longer needed (releaseCache). |
| 82 | export function createCache(): Cache { |
| 83 | return { |
| 84 | controller: new AbortControllerLocal(), |
| 85 | data: new Map(), |
| 86 | refCount: 0, |
| 87 | }; |
| 88 | } |
| 89 | |
| 90 | export function retainCache(cache: Cache) { |
| 91 | if (__DEV__) { |
no outgoing calls
no test coverage detected