SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface ICommitSource

    A source of durable-commit notifications: something that announces when a store's committed state has been externally persisted (e.g. a successful IWorkbookIO.write).

    This is the seam a TransactionSaveStateManager subscribes to, so a consumer can wire dirty-tracking to persistence by simply passing the source — no per-consumer event plumbing. Implemented by the IO layer (which depends on transaction, never the reverse).

    Distinct from the in-memory commit lifecycle on ITransaction.IListeners: that fires for every transaction commit, whereas ICommitSource.IListeners.onCommit fires only when a commit has been persisted.

    interface ICommitSource {
        addCommitListener(
            listener: ITransaction.ICommitSource.IListeners,
        ): Remove;
    }

    Hierarchy (View Summary)

    Index