hugoWebsite/node_modules/rxjs/dist/esm/internal/Scheduler.js

12 lines
453 B
JavaScript
Raw Normal View History

2022-10-29 00:20:35 +02:00
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