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

Function scheduleAfterUiUpdateCallbacks

script.js:111–116  ·  view source on GitHub ↗

* Schedule the execution of the callbacks registered with onAfterUiUpdate. * The callbacks are executed after a short while, unless another call to this function * is made before that time. IOW, the callbacks are executed only once, even * when there are multiple mutations observed.

()

Source from the content-addressed store, hash-verified

109 * when there are multiple mutations observed.
110 */
111function scheduleAfterUiUpdateCallbacks() {
112 clearTimeout(uiAfterUpdateTimeout);
113 uiAfterUpdateTimeout = setTimeout(function() {
114 executeCallbacks(uiAfterUpdateCallbacks);
115 }, 200);
116}
117
118var executedOnLoaded = false;
119

Callers 1

script.jsFile · 0.85

Calls 1

executeCallbacksFunction · 0.85

Tested by

no test coverage detected