MCPcopy Create free account
hub / github.com/error311/FileRise / scheduleFolderStatsWork

Function scheduleFolderStatsWork

public/js/folderManager.js:924–930  ·  view source on GitHub ↗
(fn, timeoutMs = 700)

Source from the content-addressed store, hash-verified

922 });
923}
924function 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}
931function folderStatsCacheKey(folder, sourceId = '') {
932 const sid = sourceId ? String(sourceId) : '';
933 return sid ? `${sid}::${folder}` : folder;

Callers 3

ensureFolderIconFunction · 0.85
primeChildTogglesFunction · 0.85
loadFolderTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected