Abstract
Protected
_Protected
_Protected
inAn 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
Readonly
queueThe transaction will self-dispose when the queue is empty, once at least one action has been processed.
Protected
statusWhether 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
Abstract
actPerforms a single interaction
the result of that interaction, specific to a given transaction type.
Protected
concludeProtected
disposeProtected
doProtected
initProtected
Abstract
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
Abstract
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.