src/hft/scripts/misc/timeout.js
function(callback, timeInMs) {
    var timeout = makeTimeout(function() {
      setTriggerTime(timeout, timeout.timeInMs);
      s_timeoutsToInsert.push(timeout);
      callback();
    });
    timeout.timeInMs = timeInMs;
    s_timeoutsToInsert.push(timeout);
    return timeout.id;
  }
function(callback, timeInMs) {
    var timeout = makeTimeout(function() {
      setTriggerTime(timeout, timeout.timeInMs);
      s_timeoutsToInsert.push(timeout);
      callback();
    });
    timeout.timeInMs = timeInMs;
    s_timeoutsToInsert.push(timeout);
    return timeout.id;
  }
function ( callback , timeInMs ) { var timeout = makeTimeout ( function ( ) { setTriggerTime ( timeout , timeout . timeInMs ) ; s_timeoutsToInsert . push ( timeout ) ; callback ( ) ; } ) ; timeout . timeInMs = timeInMs ; s_timeoutsToInsert . push ( timeout ) ; return timeout . id ; }
Same as normal setInterval
@param {callback} callback function to call at each interval
@param {number} timeInMs duration of internval
@return {number} id for interval
@memberOf module:Timeout
Same as normal setInterval