(fn, timeoutMs = 700)
| 922 | }); |
| 923 | } |
| 924 | function scheduleFolderStatsWork(fn, timeoutMs = 700) { |
| 925 | if (typeof requestIdleCallback === 'function') { |
| 926 | requestIdleCallback(() => { try { fn(); } catch (e) {} }, { timeout: timeoutMs }); |
| 927 | return; |
| 928 | } |
| 929 | setTimeout(() => { try { fn(); } catch (e) {} }, 120); |
| 930 | } |
| 931 | function folderStatsCacheKey(folder, sourceId = '') { |
| 932 | const sid = sourceId ? String(sourceId) : ''; |
| 933 | return sid ? `${sid}::${folder}` : folder; |
no outgoing calls
no test coverage detected