'use strict';
exports.test = function () {
  // Don't get fooled by e.g. browserify environments.
  return process && !process.browser;
};

exports.install = function (func) {
  if (typeof global.setImmediate === 'function') {
    return function () {
      global.setImmediate(func);
    };
  } else {
    return function () {
      process.nextTick(func);
    };
  }
};
'use strict';
exports.test = function () {
  // Don't get fooled by e.g. browserify environments.
  return process && !process.browser;
};

exports.install = function (func) {
  return function () {
    process.nextTick(func);
  };
};
use use process.nextTic