MCPcopy Index your code
hub / github.com/hoothin/UserScripts / waitToDownloadOne

Function waitToDownloadOne

Picviewer CE+/dist.user.js:16378–16384  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16376 }
16377 if(prefs.gallery.downloadGap > 0){
16378 let waitToDownloadOne = () => {
16379 setTimeout(() => {
16380 let saveParam = saveParams && saveParams.shift();
16381 if (!saveParam) clearInterval(downIntv);
16382 else downloadOne(saveParam[0], saveParam[1], waitToDownloadOne);
16383 }, prefs.gallery.downloadGap);
16384 };
16385 let threadNum = 10;
16386 if (prefs.gallery.downloadGap > 500) {
16387 threadNum = 1;

Callers

nothing calls this directly

Calls 1

downloadOneFunction · 0.70

Tested by

no test coverage detected