MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / asyncDelay

Function asyncDelay

ui/media/js/utils.js:366–370  ·  view source on GitHub ↗

Pause the execution of an async function until timer elapse. * @Returns a promise that will resolve after the specified timeout.

(timeout)

Source from the content-addressed store, hash-verified

364 * @Returns a promise that will resolve after the specified timeout.
365 */
366function asyncDelay(timeout) {
367 return new Promise(function (resolve, reject) {
368 setTimeout(resolve, timeout, true)
369 })
370}
371
372function PromiseSource() {
373 const srcPromise = new Promise((resolve, reject) => {

Callers 9

openMethod · 0.85
waitUntilFunction · 0.85
postMethod · 0.85
continueTasksFunction · 0.85
startCheckFunction · 0.85
parameters.jsFile · 0.85
jasmineSpec.jsFile · 0.85

Calls 1

setTimeoutFunction · 0.85

Tested by

no test coverage detected