MCPcopy Create free account
hub / github.com/hoothin/UserScripts / sleep

Function sleep

Picviewer CE+/dist.user.js:27319–27325  ·  view source on GitHub ↗
(time)

Source from the content-addressed store, hash-verified

27317 }
27318
27319 async function sleep(time) {
27320 await new Promise((resolve) => {
27321 setTimeout(() => {
27322 resolve();
27323 }, time);
27324 })
27325 }
27326
27327 function isKeyDownEffectiveTarget(target) {
27328 var localName = (target.shadowRoot ? (target.shadowRoot.activeElement || target) : target).localName;

Callers 1

initFunction · 0.70

Calls 1

resolveFunction · 0.70

Tested by

no test coverage detected