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

Function sleep

Pagetual/pagetual.user.js:4966–4972  ·  view source on GitHub ↗
(time)

Source from the content-addressed store, hash-verified

4964 const AsyncFunction = Object.getPrototypeOf(async function(){}).constructor;
4965
4966 async function sleep(time) {
4967 await new Promise((resolve) => {
4968 setTimeout(() => {
4969 resolve();
4970 }, time);
4971 });
4972 }
4973
4974 class RuleParser {
4975 constructor() {

Callers 8

getRuleMethod · 0.70
searchByTimeMethod · 0.70
querySelectorListMethod · 0.70
getPageMethod · 0.70
initPageMethod · 0.70
hookUrlMethod · 0.70
cloneStatusFunction · 0.70
emuPageFunction · 0.70

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected