mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
11 lines
353 B
JavaScript
11 lines
353 B
JavaScript
|
export class Scheduler {
|
||
|
constructor(SchedulerAction, now = Scheduler.now) {
|
||
|
this.SchedulerAction = SchedulerAction;
|
||
|
this.now = now;
|
||
|
}
|
||
|
schedule(work, delay = 0, state) {
|
||
|
return new this.SchedulerAction(this, work).schedule(state, delay);
|
||
|
}
|
||
|
}
|
||
|
Scheduler.now = () => Date.now();
|
||
|
//# sourceMappingURL=Scheduler.js.map
|