Defines if "completed" action should be invoked or not.

import Batch = require("nativescript-batch");

var b = Batch.newBatch(function(ctx) {
    ctx.invokeComplete = false;
}).complete(function(ctx) {
    // [0] NOT invoked
}).then(function(ctx) {
    // do something without changing
    // ctx.invokeComplete
}).complete(function(ctx) {
    // [1] invoked
});

b.start();