MCPcopy Create free account
hub / github.com/lllyasviel/Fooocus / executeCallbacks

Function executeCallbacks

javascript/script.js:81–89  ·  view source on GitHub ↗
(queue, arg)

Source from the content-addressed store, hash-verified

79}
80
81function executeCallbacks(queue, arg) {
82 for (const callback of queue) {
83 try {
84 callback(arg);
85 } catch (e) {
86 console.error("error running callback", callback, ":", e);
87 }
88 }
89}
90
91/**
92 * Schedule the execution of the callbacks registered with onAfterUiUpdate.

Callers 2

script.jsFile · 0.85

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected