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

Method run

packages/db-sqlite-persistence-core/src/persisted.ts:614–621  ·  view source on GitHub ↗
(task: () => Promise<T>)

Source from the content-addressed store, hash-verified

612 private queue: Promise<void> = Promise.resolve()
613
614 async run<T>(task: () => Promise<T>): Promise<T> {
615 const taskPromise = this.queue.then(() => task())
616 this.queue = taskPromise.then(
617 () => undefined,
618 () => undefined,
619 )
620 return taskPromise
621 }
622}
623
624function toStableSerializable(value: unknown): unknown {

Callers 15

applyCommittedTxMethod · 0.45
ensureIndexMethod · 0.45
markIndexRemovedMethod · 0.45
touchRequiredIndexesMethod · 0.45
pruneAppliedTxRowsMethod · 0.45
handleSchemaMismatchMethod · 0.45
ensureInitializedMethod · 0.45
startInternalMethod · 0.45
loadSubsetMethod · 0.45
forceReloadSubsetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected