/** PURE_IMPORTS_START tslib,_Scheduler PURE_IMPORTS_END */ import * as tslib_1 from "tslib"; import { Scheduler } from '../Scheduler'; var AsyncScheduler = /*@__PURE__*/ (function (_super) { tslib_1.__extends(AsyncScheduler, _super); function AsyncScheduler(SchedulerAction, now) { if (now === void 0) { now = Scheduler.now; } var _this = _super.call(this, SchedulerAction, function () { if (AsyncScheduler.delegate && AsyncScheduler.delegate !== _this) { return AsyncScheduler.delegate.now(); } else { return now(); } }) || this; _this.actions = []; _this.active = false; _this.scheduled = undefined; return _this; } AsyncScheduler.prototype.schedule = function (work, delay, state) { if (delay === void 0) { delay = 0; } if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) { return AsyncScheduler.delegate.schedule(work, delay, state); } else { return _super.prototype.schedule.call(this, work, delay, state); } }; 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
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Action.js | File | 561 B | 0644 |
|
Action.js.map | File | 362 B | 0644 |
|
AnimationFrameAction.js | File | 1.53 KB | 0644 |
|
AnimationFrameAction.js.map | File | 1.16 KB | 0644 |
|
AnimationFrameScheduler.js | File | 1.19 KB | 0644 |
|
AnimationFrameScheduler.js.map | File | 944 B | 0644 |
|
AsapAction.js | File | 1.51 KB | 0644 |
|
AsapAction.js.map | File | 1.2 KB | 0644 |
|
AsapScheduler.js | File | 1.12 KB | 0644 |
|
AsapScheduler.js.map | File | 924 B | 0644 |
|
AsyncAction.js | File | 2.94 KB | 0644 |
|
AsyncAction.js.map | File | 2.73 KB | 0644 |
|
AsyncScheduler.js | File | 1.84 KB | 0644 |
|
AsyncScheduler.js.map | File | 1.38 KB | 0644 |
|
QueueAction.js | File | 1.45 KB | 0644 |
|
QueueAction.js.map | File | 1.17 KB | 0644 |
|
QueueScheduler.js | File | 481 B | 0644 |
|
QueueScheduler.js.map | File | 250 B | 0644 |
|
VirtualTimeScheduler.js | File | 3.58 KB | 0644 |
|
VirtualTimeScheduler.js.map | File | 2.72 KB | 0644 |
|
animationFrame.js | File | 420 B | 0644 |
|
animationFrame.js.map | File | 329 B | 0644 |
|
asap.js | File | 300 B | 0644 |
|
asap.js.map | File | 295 B | 0644 |
|
async.js | File | 312 B | 0644 |
|
async.js.map | File | 297 B | 0644 |
|
queue.js | File | 312 B | 0644 |
|
queue.js.map | File | 297 B | 0644 |
|