Skip to Content
API referencePulsar CoreSrcInterfacesSyncCallbacks<T>

@tuwaio/pulsar-core-monorepo


SyncCallbacks<T>

Defined in: packages/pulsar-core/src/types.ts:233 

Callbacks for synchronizing local transaction state with a remote backend. These are injected into the store at creation time.

Type Parameters

T

T extends Transaction

Properties

onRemoteCreate()?

optional onRemoteCreate: (tx) => Promise<void>

Defined in: packages/pulsar-core/src/types.ts:238 

Called immediately after a transaction is created locally (added to pool). Use this to POST the active pending transaction to the backend.

Parameters

tx

T

Returns

Promise<void>

Last updated on