TCA.startTransaction

Starts a transaction.

TCA.startTransaction(name);

Arguments

name. (string) The name of the transaction to start.

Return value

A promise that will be fulfilled with no arguments.

Example

Copy code
TCA.startTransaction("login_tr1").then(function(){
  TCA.done();
}).catch(function (error) {
  TCA.doneWithError(error);
});