source: trip-planner-front/node_modules/rxjs/_esm2015/internal/scheduler/AnimationFrameScheduler.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 803 bytes
Line 
1import { AsyncScheduler } from './AsyncScheduler';
2export class AnimationFrameScheduler extends AsyncScheduler {
3 flush(action) {
4 this.active = true;
5 this.scheduled = undefined;
6 const { actions } = this;
7 let error;
8 let index = -1;
9 let count = actions.length;
10 action = action || actions.shift();
11 do {
12 if (error = action.execute(action.state, action.delay)) {
13 break;
14 }
15 } while (++index < count && (action = actions.shift()));
16 this.active = false;
17 if (error) {
18 while (++index < count && (action = actions.shift())) {
19 action.unsubscribe();
20 }
21 throw error;
22 }
23 }
24}
25//# sourceMappingURL=AnimationFrameScheduler.js.map
Note: See TracBrowser for help on using the repository browser.