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

Method sendData

packages/db-ivm/src/graph.ts:36–44  ·  view source on GitHub ↗
(collection: MultiSet<T> | MultiSetArray<T>)

Source from the content-addressed store, hash-verified

34 #queues: Array<Array<MultiSet<T>>> = []
35
36 sendData(collection: MultiSet<T> | MultiSetArray<T>): void {
37 if (!(collection instanceof MultiSet)) {
38 collection = new MultiSet(collection)
39 }
40
41 for (const q of this.#queues) {
42 q.unshift(collection)
43 }
44 }
45
46 newReader(): DifferenceStreamReader<T> {
47 const q: Array<MultiSet<T>> = []

Callers 1

runFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected