value

Gets or sets the value for that and all upcoming operations.

import Batch = require("nativescript-batch"); var b = Batch.newBatch(function(ctx) { // ctx.value = undefined ctx.value = 666: }).then(function(ctx) { // ctx.value = 666 // do something that does not change // the ctx.value property }).then(function(ctx) { // ctx.value = 666 // do something that does not change // the ctx.value property }).then(function(ctx) { // ctx.value = 666 ctx.value = "TM"; }).then(function(ctx) { // ctx.value = "TM" }); b.start();