MCPcopy
hub / github.com/AUTOMATIC1111/stable-diffusion-webui / executeCallbacks

Function executeCallbacks

script.js:95–103  ·  view source on GitHub ↗
(queue, arg)

Source from the content-addressed store, hash-verified

93}
94
95function executeCallbacks(queue, arg) {
96 for (const callback of queue) {
97 try {
98 callback(arg);
99 } catch (e) {
100 console.error("error running callback", callback, ":", e);
101 }
102 }
103}
104
105/**
106 * Schedule the execution of the callbacks registered with onAfterUiUpdate.

Callers 4

script.jsFile · 0.85
ui.jsFile · 0.85

Calls 1

callbackFunction · 0.70

Tested by

no test coverage detected