Creates a new batch and returns its first operation.

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

var b;

var firstOperation = b = Batch.newBatch(function(ctx) {
    ctx.log("Hello from 1st operation!");
});

b.start();