Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
36
my-app/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js
generated
vendored
Executable file
36
my-app/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js
generated
vendored
Executable file
|
@ -0,0 +1,36 @@
|
|||
import { __extends } from "tslib";
|
||||
import { Scheduler } from '../Scheduler';
|
||||
var AsyncScheduler = (function (_super) {
|
||||
__extends(AsyncScheduler, _super);
|
||||
function AsyncScheduler(SchedulerAction, now) {
|
||||
if (now === void 0) { now = Scheduler.now; }
|
||||
var _this = _super.call(this, SchedulerAction, now) || this;
|
||||
_this.actions = [];
|
||||
_this._active = false;
|
||||
return _this;
|
||||
}
|
||||
AsyncScheduler.prototype.flush = function (action) {
|
||||
var actions = this.actions;
|
||||
if (this._active) {
|
||||
actions.push(action);
|
||||
return;
|
||||
}
|
||||
var error;
|
||||
this._active = true;
|
||||
do {
|
||||
if ((error = action.execute(action.state, action.delay))) {
|
||||
break;
|
||||
}
|
||||
} while ((action = actions.shift()));
|
||||
this._active = false;
|
||||
if (error) {
|
||||
while ((action = actions.shift())) {
|
||||
action.unsubscribe();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
return AsyncScheduler;
|
||||
}(Scheduler));
|
||||
export { AsyncScheduler };
|
||||
//# sourceMappingURL=AsyncScheduler.js.map
|
Loading…
Add table
Add a link
Reference in a new issue