blob: 9c0ab999601996e94d3b0734a0cb6eab8e15a7ee [file] [log] [blame]
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