@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
34 lines • 1.25 kB
JavaScript
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
define(["require", "exports", './FutureAction'], function (require, exports, FutureAction_1) {
"use strict";
/**
* We need this JSDoc comment for affecting ESDoc.
* @ignore
* @extends {Ignored}
*/
var QueueAction = (function (_super) {
__extends(QueueAction, _super);
function QueueAction() {
_super.apply(this, arguments);
}
QueueAction.prototype._schedule = function (state, delay) {
if (delay === void 0) { delay = 0; }
if (delay > 0) {
return _super.prototype._schedule.call(this, state, delay);
}
this.delay = delay;
this.state = state;
var scheduler = this.scheduler;
scheduler.actions.push(this);
scheduler.flush();
return this;
};
return QueueAction;
}(FutureAction_1.FutureAction));
exports.QueueAction = QueueAction;
});
//# sourceMappingURL=QueueAction.js.map