Sets the values for 'result' and 'value' properties.
import Batch = require("nativescript-batch");
var b = Batch.newBatch(function(ctx) {
ctx.setResultAndValue("TM");
}).then(function(ctx) {
console.log("Value: " + ctx.value); // "TM"
});
// "TM"
var r = b.start();