Type Alias: ModularBatch
ModularBatch = <
T>(run,options?) =>Promise<T>
Function
Runs several modular scene changes as one transaction: one render switch, one history entry and one autosave at the end. A failure triggers a rollback with a separate deadline.
Do not call other public actions inside run: they wait until the batch ends, so the batch
times out and rolls back.
Type Parameters
T
T
Parameters
run
(tx) => Promise<T>
options?
Returns
Promise<T>
Throws
With the first error of the batch. The error has
rollbackFailed: true when the finished event reports rollback-failed.