@ydbjs/topic
Version:
YDB Topics client for publish-subscribe messaging. Provides at-least-once delivery, exactly-once publishing, FIFO guarantees, and scalable message processing for unstructured data.
9 lines • 435 B
TypeScript
import type { Abortable } from 'node:events';
export interface TX extends Abortable {
sessionId: string;
transactionId: string;
onRollback: (fn: (error: unknown, signal?: AbortSignal) => Promise<void> | void) => void;
onCommit: (fn: (signal?: AbortSignal) => Promise<void> | void) => void;
onClose: (fn: (committed: boolean, signal?: AbortSignal) => Promise<void> | void) => void;
}
//# sourceMappingURL=tx.d.ts.map