12345678910111213141516171819 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.Scheduler = void 0;
- var dateTimestampProvider_1 = require("./scheduler/dateTimestampProvider");
- var Scheduler = (function () {
- function Scheduler(schedulerActionCtor, now) {
- if (now === void 0) { now = Scheduler.now; }
- this.schedulerActionCtor = schedulerActionCtor;
- this.now = now;
- }
- Scheduler.prototype.schedule = function (work, delay, state) {
- if (delay === void 0) { delay = 0; }
- return new this.schedulerActionCtor(this, work).schedule(state, delay);
- };
- Scheduler.now = dateTimestampProvider_1.dateTimestampProvider.now;
- return Scheduler;
- }());
- exports.Scheduler = Scheduler;
- //# sourceMappingURL=Scheduler.js.map
|