You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
453 B
12 lines
453 B
import { dateTimestampProvider } from './scheduler/dateTimestampProvider';
|
|
export class Scheduler {
|
|
constructor(schedulerActionCtor, now = Scheduler.now) {
|
|
this.schedulerActionCtor = schedulerActionCtor;
|
|
this.now = now;
|
|
}
|
|
schedule(work, delay = 0, state) {
|
|
return new this.schedulerActionCtor(this, work).schedule(state, delay);
|
|
}
|
|
}
|
|
Scheduler.now = dateTimestampProvider.now;
|
|
//# sourceMappingURL=Scheduler.js.map
|