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

Function PromiseSource

ui/media/js/utils.js:372–382  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

370}
371
372function PromiseSource() {
373 const srcPromise = new Promise((resolve, reject) => {
374 Object.defineProperties(this, {
375 resolve: { value: resolve, writable: false },
376 reject: { value: reject, writable: false },
377 })
378 })
379 Object.defineProperties(this, {
380 promise: { value: makeQuerablePromise(srcPromise), writable: false },
381 })
382}
383
384/** A debounce is a higher-order function, which is a function that returns another function
385 * that, as long as it continues to be invoked, will not be triggered.

Callers

nothing calls this directly

Calls 1

makeQuerablePromiseFunction · 0.85

Tested by

no test coverage detected