immediateProvider.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. "use strict";
  2. var __read = (this && this.__read) || function (o, n) {
  3. var m = typeof Symbol === "function" && o[Symbol.iterator];
  4. if (!m) return o;
  5. var i = m.call(o), r, ar = [], e;
  6. try {
  7. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  8. }
  9. catch (error) { e = { error: error }; }
  10. finally {
  11. try {
  12. if (r && !r.done && (m = i["return"])) m.call(i);
  13. }
  14. finally { if (e) throw e.error; }
  15. }
  16. return ar;
  17. };
  18. var __spreadArray = (this && this.__spreadArray) || function (to, from) {
  19. for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
  20. to[j] = from[i];
  21. return to;
  22. };
  23. Object.defineProperty(exports, "__esModule", { value: true });
  24. exports.immediateProvider = void 0;
  25. var Immediate_1 = require("../util/Immediate");
  26. var setImmediate = Immediate_1.Immediate.setImmediate, clearImmediate = Immediate_1.Immediate.clearImmediate;
  27. exports.immediateProvider = {
  28. setImmediate: function () {
  29. var args = [];
  30. for (var _i = 0; _i < arguments.length; _i++) {
  31. args[_i] = arguments[_i];
  32. }
  33. var delegate = exports.immediateProvider.delegate;
  34. return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate).apply(void 0, __spreadArray([], __read(args)));
  35. },
  36. clearImmediate: function (handle) {
  37. var delegate = exports.immediateProvider.delegate;
  38. return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle);
  39. },
  40. delegate: undefined,
  41. };
  42. //# sourceMappingURL=immediateProvider.js.map