Home > @i2analyze/notebook-sdk > app > IApplication > runTransaction
app.IApplication.runTransaction() method
Queues a function that performs read-only work on the application contents at the next available opportunity.
Signature:
runTransaction(handler: TransactionHandler, options?: ITransactionOptions): Promise<void>;
Introduced: version 1.0
Parameters
Parameter | Type | Description |
---|---|---|
handler | TransactionHandler | The function to perform the work. |
options | ITransactionOptions | (Optional) An object that can control the transaction. |
Returns:
Promise<void>
A promise that is fulfilled if the work completes successfully, or rejected if there is a problem performing it.