Protected
_Protected
_Protected
Readonly
contextProtected
Readonly
editorProtected
inProtected
Readonly
jsoncProtected
Readonly
messageAn event fired when the transaction is wrapping up.
Consumers can call waitUntil
on the event to delay the resolution of the result
Promise.
Protected
Readonly
onProtected
Optional
Readonly
preludeProtected
Readonly
queueThe transaction will self-dispose when the queue is empty, once at least one action has been processed.
Protected
statusProtected
Readonly
textWhether the transaction is still accepting new interactions. Enqueueing an action when the Transaction is no longer open will throw an error.
The status of the transaction when complete.
Protected
actPerforms a single interaction
the result of that interaction, specific to a given transaction type.
Protected
concludeProtected
disposeProtected
doa promise reflecting the result of performing an action. Typically the promise will not resolve until the whole transaction is complete.
Protected
handlewhether the setting operation in progress, and any others started in the meantime, should continue.
Protected
initProtected
setRuns any code necessary to initialize the batch of interactions. No interaction will be run until the setup is complete.
a representation of the success of setup specific to a given transaction implementation.
Protected
tearRuns any code necessary to complete a transaction and release any resources it holds.
implementation-specific information about the success of the transaction. Will be used as the final status of the transaction.
Optional
delay: Promise<unknown>Optional
disposeIfRejected: boolean
Whether any actions have been added to the transaction. The Transaction will not self-dispose until at least one action has been performed.