Sets the initial result value.
import Batch = require("nativescript-batch");
var b = Batch.newBatch(function(ctx) {
console.log("Result: " + ctx.result); // 23979
}).then(function(ctx) {
ctx.result = 5979;
});
b.batch.setResult(23979);
// 5979
var r = b.batch.start();