Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
353 bytes
|
Line | |
---|
1 | export class Scheduler {
|
---|
2 | constructor(SchedulerAction, now = Scheduler.now) {
|
---|
3 | this.SchedulerAction = SchedulerAction;
|
---|
4 | this.now = now;
|
---|
5 | }
|
---|
6 | schedule(work, delay = 0, state) {
|
---|
7 | return new this.SchedulerAction(this, work).schedule(state, delay);
|
---|
8 | }
|
---|
9 | }
|
---|
10 | Scheduler.now = () => Date.now();
|
---|
11 | //# sourceMappingURL=Scheduler.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.