Sets the (display) name of the current operation.

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

var b = Batch.newBatch(function(ctx) {
    console.log("Name: " + ctx.name);  // "Operation #1"
}).setName("Operation #1")
  .then(function(ctx) {
    console.log("Name: " + ctx.name);  // "Operation #2"
}).setName("Operation #2");

b.start();