MCPcopy
hub / github.com/stackblitz/alien-signals / flush

Function flush

src/index.ts:315–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

313}
314
315function flush(): void {
316 try {
317 while (notifyIndex < queuedLength) {
318 const effect = queued[notifyIndex]!;
319 queued[notifyIndex++] = undefined;
320 run(effect);
321 }
322 } finally {
323 while (notifyIndex < queuedLength) {
324 const effect = queued[notifyIndex]!;
325 queued[notifyIndex++] = undefined;
326 effect.flags |= ReactiveFlags.Watching | ReactiveFlags.Recursed;
327 }
328 notifyIndex = 0;
329 queuedLength = 0;
330 }
331}
332
333function computedOper<T>(this: ComputedNode<T>): T {
334 const flags = this.flags;

Callers 3

endBatchFunction · 0.85
triggerFunction · 0.85
signalOperFunction · 0.85

Calls 1

runFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…