TransactionFactory.createTransaction Method

Creates a new transaction.
 

Parameters

afterExecFunc

Type: Function
The function to run when all enrolled functions are ran. Overrides afterExecFunc in options.
expectedCommits

Type: Number
Number of enrollment before automatically running.
commitFailedFunc

Type: Function
Run when enrollments are executed and at least one fails.

Return Value


Type: Transaction
The transaction.