aboutsummaryrefslogtreecommitdiff
path: root/node_modules/immediate/lib/nextTick.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/immediate/lib/nextTick.js')
-rw-r--r--node_modules/immediate/lib/nextTick.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/immediate/lib/nextTick.js b/node_modules/immediate/lib/nextTick.js
new file mode 100644
index 00000000..6acc0d76
--- /dev/null
+++ b/node_modules/immediate/lib/nextTick.js
@@ -0,0 +1,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);
+ };
+};