Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Scheduler.js 633B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var Scheduler = (function () {
  4. function Scheduler(SchedulerAction, now) {
  5. if (now === void 0) { now = Scheduler.now; }
  6. this.SchedulerAction = SchedulerAction;
  7. this.now = now;
  8. }
  9. Scheduler.prototype.schedule = function (work, delay, state) {
  10. if (delay === void 0) { delay = 0; }
  11. return new this.SchedulerAction(this, work).schedule(state, delay);
  12. };
  13. Scheduler.now = function () { return Date.now(); };
  14. return Scheduler;
  15. }());
  16. exports.Scheduler = Scheduler;
  17. //# sourceMappingURL=Scheduler.js.map