"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); } return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var Scheduler_1 = require("../Scheduler"); var AsyncScheduler = (function (_super) { __extends(AsyncScheduler, _super); function AsyncScheduler(SchedulerAction, now) { if (now === void 0) { now = Scheduler_1.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_1.Scheduler)); exports.AsyncScheduler = AsyncScheduler; //# sourceMappingURL=AsyncScheduler.js.map
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Action.d.ts | File | 1.26 KB | 0644 |
|
Action.js | File | 1.08 KB | 0644 |
|
Action.js.map | File | 356 B | 0644 |
|
AnimationFrameAction.d.ts | File | 739 B | 0644 |
|
AnimationFrameAction.js | File | 2.05 KB | 0644 |
|
AnimationFrameAction.js.map | File | 1.16 KB | 0644 |
|
AnimationFrameScheduler.d.ts | File | 212 B | 0644 |
|
AnimationFrameScheduler.js | File | 1.76 KB | 0644 |
|
AnimationFrameScheduler.js.map | File | 939 B | 0644 |
|
AsapAction.d.ts | File | 669 B | 0644 |
|
AsapAction.js | File | 2.03 KB | 0644 |
|
AsapAction.js.map | File | 1.17 KB | 0644 |
|
AsapScheduler.d.ts | File | 202 B | 0644 |
|
AsapScheduler.js | File | 1.68 KB | 0644 |
|
AsapScheduler.js.map | File | 918 B | 0644 |
|
AsyncAction.d.ts | File | 1.12 KB | 0644 |
|
AsyncAction.js | File | 3.44 KB | 0644 |
|
AsyncAction.js.map | File | 2.73 KB | 0644 |
|
AsyncScheduler.d.ts | File | 1.01 KB | 0644 |
|
AsyncScheduler.js | File | 2.38 KB | 0644 |
|
AsyncScheduler.js.map | File | 1.38 KB | 0644 |
|
QueueAction.d.ts | File | 734 B | 0644 |
|
QueueAction.js | File | 1.96 KB | 0644 |
|
QueueAction.js.map | File | 1.17 KB | 0644 |
|
QueueScheduler.d.ts | File | 114 B | 0644 |
|
QueueScheduler.js | File | 1.03 KB | 0644 |
|
QueueScheduler.js.map | File | 243 B | 0644 |
|
VirtualTimeScheduler.d.ts | File | 1.37 KB | 0644 |
|
VirtualTimeScheduler.js | File | 4.03 KB | 0644 |
|
VirtualTimeScheduler.js.map | File | 2.69 KB | 0644 |
|
animationFrame.d.ts | File | 1.28 KB | 0644 |
|
animationFrame.js | File | 445 B | 0644 |
|
animationFrame.js.map | File | 244 B | 0644 |
|
asap.d.ts | File | 1.62 KB | 0644 |
|
asap.js | File | 325 B | 0644 |
|
asap.js.map | File | 219 B | 0644 |
|
async.d.ts | File | 1.45 KB | 0644 |
|
async.js | File | 337 B | 0644 |
|
async.js.map | File | 221 B | 0644 |
|
queue.d.ts | File | 1.98 KB | 0644 |
|
queue.js | File | 337 B | 0644 |
|
queue.js.map | File | 221 B | 0644 |
|