Gets the current execution context.
import Batch = require("nativescript-batch");
var b = Batch.newBatch(function(ctx) {
// ctx.executionContext = BatchOperationExecutionContext.execution
}).success(function(ctx) {
// ctx.executionContext = BatchOperationExecutionContext.success
}).error(function(ctx) {
// ctx.executionContext = BatchOperationExecutionContext.error
}).complete(function(ctx) {
// ctx.executionContext = BatchOperationExecutionContext.complete
}).after(function(ctx) {
// ctx.executionContext = BatchOperationExecutionContext.after
}).before(function(ctx) {
// ctx.executionContext = BatchOperationExecutionContext.before
}).whenAllFinished(function(ctx) {
// ctx.executionContext = BatchOperationExecutionContext.finished
});
b.start();