3 Object.defineProperty(exports, "__esModule", {
7 var _setImmediate = require('./internal/setImmediate');
9 var _setImmediate2 = _interopRequireDefault(_setImmediate);
11 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14 * Calls `callback` on a later loop around the event loop. In Node.js this just
15 * calls `setImmediate`. In the browser it will use `setImmediate` if
16 * available, otherwise `setTimeout(callback, 0)`, which means other higher
17 * priority events may precede the execution of `callback`.
19 * This is used internally for browser-compatibility purposes.
23 * @memberOf module:Utils
27 * @param {Function} callback - The function to call on a later loop around
28 * the event loop. Invoked with (args...).
29 * @param {...*} args... - any number of additional arguments to pass to the
30 * callback on the next tick.
33 * var call_order = [];
34 * async.nextTick(function() {
35 * call_order.push('two');
36 * // call_order now equals ['one','two']
38 * call_order.push('one');
40 * async.setImmediate(function (a, b, c) {
41 * // a, b, and c equal 1, 2, and 3
44 exports.default = _setImmediate2.default;
45 module.exports = exports['default'];