withIndirectTxnModeAsync Method @beta
Asynchronously execute a series of changes with the TxnMode set to "indirect", so they are recorded as indirect changes.
Calls may be nested with each other and with withIndirectTxnMode; the mode reverts to "direct" when the
outermost call completes or rejects. While the returned promise is pending, all changes to this iModel, including those made by
other concurrent code, are recorded as indirect. This method does not save changes.
withIndirectTxnModeAsync(callback: () => Promise<void>): Promise<void>
| Parameter | Type | Description |
|---|---|---|
| callback | () => Promise<void> | The function containing the changes to make. |
Returns - Promise
Defined in
- backend/src/TxnManager.ts Line 1755
Last Updated: 09 November, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.