MCPcopy Create free account
hub / github.com/TanStack/db / drain

Method drain

packages/db-ivm/src/graph.ts:19–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 }
18
19 drain(): Array<MultiSet<T>> {
20 const out = [...this.#queue].reverse()
21 this.#queue.length = 0
22 return out
23 }
24
25 isEmpty(): boolean {
26 return this.#queue.length === 0

Callers 4

inputMessagesFunction · 0.80
inputAMessagesFunction · 0.80
inputBMessagesFunction · 0.80
graph.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected