Gets or sets the ID of the batch.
import Batch = require("nativescript-batch");
var b = Batch.newBatch(function(ctx) {
console.log("Batch ID: " + ctx.batchId);
});
b.batch.id = "MyBatch";
b.start();
Gets or sets the ID of the batch.
import Batch = require("nativescript-batch");
var b = Batch.newBatch(function(ctx) {
console.log("Batch ID: " + ctx.batchId);
});
b.batch.id = "MyBatch";
b.start();