tflow.js
/**
   Return next tick function for current environment.
*/
Return next tick function for current environment.
Return next tick function for current environment .
function nextTickFn() {
  if (typeof setImmediate === 'function') {
    return setImmediate;
  } else if (typeof process !== 'undefined' && process.nextTick) {
    return function(fn) {
      process.nextTick(fn);
    }
  } else {
    return function(fn) {
      setTimeout(fn, 0);
    }
  }
}
function nextTickFn ( ) { if ( typeof setImmediate === 'function' ) { return setImmediate ; } else if ( typeof process !== 'undefined' && process . nextTick ) { return function ( fn ) { process . nextTick ( fn ) ; } } else { return function ( fn ) { setTimeout ( fn , 0 ) ; } } }
Return next tick function for current environment.
Return next tick function for current environment .
// setImmediate allows to run task after already queued I/O callbacks