Defines the "success" action.
import Batch = require("nativescript-batch");
var b = Batch.newBatch(function(ctx) {
console.log("execution");
}).error(function(ctx) {
// will not be invoked
console.log("error");
}).complete(function(ctx) {
console.log("complete");
}).success(function(ctx) {
console.log("success");
});
b.start();