The transaction will self-dispose when the queue is empty, once at least one action has been processed.
An event fired when the transaction is wrapping up.
Consumers can call waitUntil
on the event to delay the resolution of the result
Promise.
Whether 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.
Performs a single interaction
the result of that interaction, specific to a given transaction type.
a promise reflecting the result of performing an action. Typically the promise will not resolve until the whole transaction is complete.
whether the setting operation in progress, and any others started in the meantime, should continue.
Runs 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.
Runs 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.
Whether any actions have been added to the transaction. The Transaction will not self-dispose until at least one action has been performed.