MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / drain

Method drain

packages/core/src/app/updateQueue.ts:34–39  ·  view source on GitHub ↗

* Remove and return all pending updaters. * Returns empty array if no updates pending.

()

Source from the content-addressed store, hash-verified

32 * Returns empty array if no updates pending.
33 */
34 drain(): readonly StateUpdater<S>[] {
35 if (this.pending.length === 0) return [];
36 const out = this.pending;
37 this.pending = [];
38 return out;
39 }
40
41 /** Number of pending updates. */
42 get size(): number {

Callers 1

commitUpdatesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected