Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
602 bytes
|
Line | |
---|
1 | var Scheduler = /*@__PURE__*/ (function () {
|
---|
2 | function Scheduler(SchedulerAction, now) {
|
---|
3 | if (now === void 0) {
|
---|
4 | now = Scheduler.now;
|
---|
5 | }
|
---|
6 | this.SchedulerAction = SchedulerAction;
|
---|
7 | this.now = now;
|
---|
8 | }
|
---|
9 | Scheduler.prototype.schedule = function (work, delay, state) {
|
---|
10 | if (delay === void 0) {
|
---|
11 | delay = 0;
|
---|
12 | }
|
---|
13 | return new this.SchedulerAction(this, work).schedule(state, delay);
|
---|
14 | };
|
---|
15 | Scheduler.now = function () { return Date.now(); };
|
---|
16 | return Scheduler;
|
---|
17 | }());
|
---|
18 | export { Scheduler };
|
---|
19 | //# sourceMappingURL=Scheduler.js.map
|
---|
Note:
See
TracBrowser
for help on using the repository browser.