Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

withAcceptedReceipt.md

32 lines659 Bytes

function withAcceptedReceipt(visible, accepted): Promise<void>;

Defined in: packages/db/src/sync-receipt.ts:14

Internal

Attaches the moment a sync transaction was accepted to the receipt that resolves when it is visible. A wrapping sync, such as persistence, accepts after its durable step.

Adapter infrastructure, not an application API.

Parameters

visible

Promise<void>

accepted

SyncAppliedReceipt

Returns

Promise<void>