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

Function queue

packages/rxdb-db-collection/src/rxdb.ts:200–208  ·  view source on GitHub ↗
(msg: WriteMessage)

Source from the content-addressed store, hash-verified

198 type WriteMessage = Parameters<typeof write>[0]
199 const buffer: Array<WriteMessage> = []
200 const queue = (msg: WriteMessage) => {
201 if (!ready) {
202 buffer.push(msg)
203 return
204 }
205 begin()
206 write(msg)
207 commit()
208 }
209
210 let sub: Subscription
211 function startOngoingFetch() {

Callers 1

startOngoingFetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected