TxJob::continue

Continue running the job from it's current state, this is useful when rebuild the Job with upJSON (deserialize)

arguments

  • TxTask: an object including your data

usage

et job = new TxJob();
let from = {
  "name": "GitHub",
  "block": "GITHUB::GIST::C1,GITHUB::GIST::C2,GITHUB::GIST::C3",
  "stack": "GITHUB::GIST::C2,GITHUB::GIST::C3",
  "trace": "GITHUB::GIST::C1",
  "single": false,
  "current": "GITHUB::GIST::C2"
}
let after = job.upJSON(from).toJSON();
 
job.continue(new TxTask(
  'continue',
  '',
  {something: 'more data here'})
);
 
});

Last updated