lib/components/tasks/lib/entry.js
function CruxTaskEntry(name) {
  this.autorun = true;  // we can disable auto running.
  this.name = name;
  this.debug = false;
  this.type = 'serial'; // the type of this task. Can be: serial or parallel
  this.__queue = [];
  this.__actions = {};
  this.__hasActions = false;
  this.__started = false;
  this.__scheduled = false;
  this.__wait = 0;
  this.__running = false;
  this.__handlers = {}; // currently, only "failed", "timeout" and "completed"
  this.__options = {
    delay: 10, // number of seconds to delay the run.
    timeout: 0,  // number of seconds until we consider the task failed.
    timer: 0    // number of seconds between calls. Defaults to 0(cyclic disabled)
  };
  this.__run_queue = [];  // we place any run requests while running here.
  EventEmitter.call(this);
}
function CruxTaskEntry(name) {
  this.autorun = true;  // we can disable auto running.
  this.name = name;
  this.debug = false;
  this.type = 'serial'; // the type of this task. Can be: serial or parallel
  this.__queue = [];
  this.__actions = {};
  this.__hasActions = false;
  this.__started = false;
  this.__scheduled = false;
  this.__wait = 0;
  this.__running = false;
  this.__handlers = {}; // currently, only "failed", "timeout" and "completed"
  this.__options = {
    delay: 10, // number of seconds to delay the run.
    timeout: 0,  // number of seconds until we consider the task failed.
    timer: 0    // number of seconds between calls. Defaults to 0(cyclic disabled)
  };
  this.__run_queue = [];  // we place any run requests while running here.
  EventEmitter.call(this);
}
function CruxTaskEntry ( name ) { this . autorun = true ; // we can disable auto running. this . name = name ; this . debug = false ; this . type = 'serial' ; // the type of this task. Can be: serial or parallel this . __queue = [ ] ; this . __actions = { } ; this . __hasActions = false ; this . __started = false ; this . __scheduled = false ; this . __wait = 0 ; this . __running = false ; this . __handlers = { } ; // currently, only "failed", "timeout" and "completed" this . __options = { delay : 10 , // number of seconds to delay the run. timeout : 0 , // number of seconds until we consider the task failed. timer : 0 // number of seconds between calls. Defaults to 0(cyclic disabled) } ; this . __run_queue = [ ] ; // we place any run requests while running here. EventEmitter . call ( this ) ; }
the "this" context for each scheduled action. Also a singleton.
the this context for each scheduled action . Also a singleton .