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

Function processByTime

RandomSexyPic/randomSexyPic.user.js:456–463  ·  view source on GitHub ↗
(num,fn,limit,time)

Source from the content-addressed store, hash-verified

454 })
455 }
456 async function processByTime(num,fn,limit,time) {
457 while(num>0){
458 var loadNum=limit;
459 if(num<limit)loadNum=num;
460 num-=loadNum;
461 await sleep(fn,loadNum,time);
462 }
463 }
464
465 overMask.onclick=e=>{
466 if(hasFloatImg){

Callers 1

Calls 1

sleepFunction · 0.70

Tested by

no test coverage detected