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

Function start

public/js/fileListView.js:3120–3129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3118function _runFolderStats(url, timeoutMs) {
3119 return new Promise(resolve => {
3120 const start = () => {
3121 _activeFolderStatsReqs++;
3122 _fetchJSONWithTimeout(url, timeoutMs || 2500)
3123 .then(resolve)
3124 .finally(() => {
3125 _activeFolderStatsReqs--;
3126 const next = _folderStatsQueue.shift();
3127 if (next) next();
3128 });
3129 };
3130
3131 if (_activeFolderStatsReqs < MAX_CONCURRENT_FOLDER_STATS_REQS) start();
3132 else _folderStatsQueue.push(start);

Callers 1

_runFolderStatsFunction · 0.70

Calls 1

_fetchJSONWithTimeoutFunction · 0.85

Tested by

no test coverage detected