Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
633 bytes
|
Rev | Line | |
---|
[6a3a178] | 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 |
---|
Note:
See
TracBrowser
for help on using the repository browser.