Defines if "checkIfFinished" method should be autmatically 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");
}).whenAllFinished(function(ctx) {
    console.log("All operations finished.");
});

b.batch.invokeFinishedCheckForAll();
b.start();

b.batch.invokeFinishedCheckForAll(false);
b.start();  // "whenAllFinished" action will not be invoked