1 /** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */
2 import * as tslib_1 from "tslib";
3 import { AsyncScheduler } from './AsyncScheduler';
4 var AnimationFrameScheduler = /*@__PURE__*/ (function (_super) {
5 tslib_1.__extends(AnimationFrameScheduler, _super);
6 function AnimationFrameScheduler() {
7 return _super !== null && _super.apply(this, arguments) || this;
9 AnimationFrameScheduler.prototype.flush = function (action) {
11 this.scheduled = undefined;
12 var actions = this.actions;
15 var count = actions.length;
16 action = action || actions.shift();
18 if (error = action.execute(action.state, action.delay)) {
21 } while (++index < count && (action = actions.shift()));
24 while (++index < count && (action = actions.shift())) {
30 return AnimationFrameScheduler;
32 export { AnimationFrameScheduler };
33 //# sourceMappingURL=AnimationFrameScheduler.js.map