aboutsummaryrefslogtreecommitdiff
path: root/node_modules/immediate/lib/nextTick.js
blob: 6acc0d7676faef0a45e25d06155d472fe4c56a6b (plain)
1
2
3
4
5
6
7
8
9
10
11
'use strict';
exports.test = function () {
  // Don't get fooled by e.g. browserify environments.
  return (typeof process !== 'undefined') && !process.browser;
};

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