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

subscribeToResult.js 788B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var InnerSubscriber_1 = require("../InnerSubscriber");
  4. var subscribeTo_1 = require("./subscribeTo");
  5. var Observable_1 = require("../Observable");
  6. function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, innerSubscriber) {
  7. if (innerSubscriber === void 0) { innerSubscriber = new InnerSubscriber_1.InnerSubscriber(outerSubscriber, outerValue, outerIndex); }
  8. if (innerSubscriber.closed) {
  9. return undefined;
  10. }
  11. if (result instanceof Observable_1.Observable) {
  12. return result.subscribe(innerSubscriber);
  13. }
  14. return subscribeTo_1.subscribeTo(result)(innerSubscriber);
  15. }
  16. exports.subscribeToResult = subscribeToResult;
  17. //# sourceMappingURL=subscribeToResult.js.map