Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

InnerSubscriber.js 1.0KB

12345678910111213141516171819202122232425262728
  1. /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
  2. import * as tslib_1 from "tslib";
  3. import { Subscriber } from './Subscriber';
  4. var InnerSubscriber = /*@__PURE__*/ (function (_super) {
  5. tslib_1.__extends(InnerSubscriber, _super);
  6. function InnerSubscriber(parent, outerValue, outerIndex) {
  7. var _this = _super.call(this) || this;
  8. _this.parent = parent;
  9. _this.outerValue = outerValue;
  10. _this.outerIndex = outerIndex;
  11. _this.index = 0;
  12. return _this;
  13. }
  14. InnerSubscriber.prototype._next = function (value) {
  15. this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);
  16. };
  17. InnerSubscriber.prototype._error = function (error) {
  18. this.parent.notifyError(error, this);
  19. this.unsubscribe();
  20. };
  21. InnerSubscriber.prototype._complete = function () {
  22. this.parent.notifyComplete(this);
  23. this.unsubscribe();
  24. };
  25. return InnerSubscriber;
  26. }(Subscriber));
  27. export { InnerSubscriber };
  28. //# sourceMappingURL=InnerSubscriber.js.map