Defines the global action that is invoked AFTER each operation.
import Batch = require("nativescript-batch");
var b = Batch.newBatch(function(ctx) {
console.log("Operation 1");
}).then(function(ctx) {
console.log("Operation 2");
}).then(function(ctx) {
console.log("Operation 3");
});
b.batch.after(function(ctx) {
console.log("[AFTER] Operation " + (ctx.index + 1));
});
b.start();