basant307/AI_Governance_Project
048
1'use strict';2 3Object.defineProperty(exports, "__esModule", {4 value: true5});6 7var _setImmediate = require('./internal/setImmediate.js');8 9var _setImmediate2 = _interopRequireDefault(_setImmediate);10 11function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }12 13/**14 * Calls `callback` on a later loop around the event loop. In Node.js this just15 * calls `setImmediate`. In the browser it will use `setImmediate` if16 * available, otherwise `setTimeout(callback, 0)`, which means other higher17 * priority events may precede the execution of `callback`.18 *19 * This is used internally for browser-compatibility purposes.20 *21 * @name setImmediate22 * @static23 * @memberOf module:Utils24 * @method25 * @see [async.nextTick]{@link module:Utils.nextTick}26 * @category Util27 * @param {Function} callback - The function to call on a later loop around28 * the event loop. Invoked with (args...).29 * @param {...*} args... - any number of additional arguments to pass to the30 * callback on the next tick.31 * @example32 *33 * var call_order = [];34 * async.nextTick(function() {35 * call_order.push('two');36 * // call_order now equals ['one','two']37 * });38 * call_order.push('one');39 *40 * async.setImmediate(function (a, b, c) {41 * // a, b, and c equal 1, 2, and 342 * }, 1, 2, 3);43 */44exports.default = _setImmediate2.default;45module.exports = exports.default;