PATH:
usr
/
local
/
lib
/
node_modules
/
ghost-cli
/
node_modules
/
rxjs
/
internal
/
scheduler
"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
[-] animationFrame.js.map
[edit]
[-] async.d.ts
[edit]
[-] animationFrame.d.ts
[edit]
[-] AsyncScheduler.js
[edit]
[+]
..
[-] QueueScheduler.js
[edit]
[-] asap.js.map
[edit]
[-] VirtualTimeScheduler.d.ts
[edit]
[-] AnimationFrameAction.js
[edit]
[-] queue.js
[edit]
[-] AsapScheduler.js.map
[edit]
[-] AsapAction.d.ts
[edit]
[-] QueueScheduler.d.ts
[edit]
[-] AsapAction.js.map
[edit]
[-] async.js.map
[edit]
[-] VirtualTimeScheduler.js.map
[edit]
[-] AnimationFrameScheduler.d.ts
[edit]
[-] QueueAction.js
[edit]
[-] AsyncScheduler.js.map
[edit]
[-] AnimationFrameAction.d.ts
[edit]
[-] AnimationFrameScheduler.js
[edit]
[-] AsyncAction.js
[edit]
[-] Action.js.map
[edit]
[-] asap.js
[edit]
[-] QueueAction.d.ts
[edit]
[-] async.js
[edit]
[-] AsyncAction.js.map
[edit]
[-] AsapScheduler.js
[edit]
[-] AsapAction.js
[edit]
[-] asap.d.ts
[edit]
[-] QueueScheduler.js.map
[edit]
[-] animationFrame.js
[edit]
[-] QueueAction.js.map
[edit]
[-] queue.d.ts
[edit]
[-] AnimationFrameAction.js.map
[edit]
[-] AnimationFrameScheduler.js.map
[edit]
[-] AsapScheduler.d.ts
[edit]
[-] AsyncAction.d.ts
[edit]
[-] Action.d.ts
[edit]
[-] AsyncScheduler.d.ts
[edit]
[-] queue.js.map
[edit]
[-] Action.js
[edit]
[-] VirtualTimeScheduler.js
[edit]