wishthis/node_modules/rxjs/dist/esm5/internal/Scheduler.js

16 lines
629 B
JavaScript
Raw Normal View History

2022-06-08 10:36:39 +00:00
import { dateTimestampProvider } from './scheduler/dateTimestampProvider';
var Scheduler = (function () {
function Scheduler(schedulerActionCtor, now) {
if (now === void 0) { now = Scheduler.now; }
this.schedulerActionCtor = schedulerActionCtor;
this.now = now;
}
Scheduler.prototype.schedule = function (work, delay, state) {
if (delay === void 0) { delay = 0; }
return new this.schedulerActionCtor(this, work).schedule(state, delay);
};
Scheduler.now = dateTimestampProvider.now;
return Scheduler;
}());
export { Scheduler };
//# sourceMappingURL=Scheduler.js.map