source: trip-planner-front/node_modules/rxjs/_esm5/internal/scheduler/AsapScheduler.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: 1.1 KB
Line 
1/** PURE_IMPORTS_START tslib,_AsyncScheduler PURE_IMPORTS_END */
2import * as tslib_1 from "tslib";
3import { AsyncScheduler } from './AsyncScheduler';
4var AsapScheduler = /*@__PURE__*/ (function (_super) {
5 tslib_1.__extends(AsapScheduler, _super);
6 function AsapScheduler() {
7 return _super !== null && _super.apply(this, arguments) || this;
8 }
9 AsapScheduler.prototype.flush = function (action) {
10 this.active = true;
11 this.scheduled = undefined;
12 var actions = this.actions;
13 var error;
14 var index = -1;
15 var count = actions.length;
16 action = action || actions.shift();
17 do {
18 if (error = action.execute(action.state, action.delay)) {
19 break;
20 }
21 } while (++index < count && (action = actions.shift()));
22 this.active = false;
23 if (error) {
24 while (++index < count && (action = actions.shift())) {
25 action.unsubscribe();
26 }
27 throw error;
28 }
29 };
30 return AsapScheduler;
31}(AsyncScheduler));
32export { AsapScheduler };
33//# sourceMappingURL=AsapScheduler.js.map
Note: See TracBrowser for help on using the repository browser.