Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

subscribeToResult.js 764B

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, destination) {
  7. if (destination === void 0) { destination = new InnerSubscriber_1.InnerSubscriber(outerSubscriber, outerValue, outerIndex); }
  8. if (destination.closed) {
  9. return undefined;
  10. }
  11. if (result instanceof Observable_1.Observable) {
  12. return result.subscribe(destination);
  13. }
  14. return subscribeTo_1.subscribeTo(result)(destination);
  15. }
  16. exports.subscribeToResult = subscribeToResult;
  17. //# sourceMappingURL=subscribeToResult.js.map