Open this page in the API Guide
Transaction.enroll Method
Enroll a function into the transaction. If totally number of enrolled functions has reached expectedCommits, automatically run all enrolled functions.
Parameters
- callback
-
Type: Function
A function to enroll.