source: trip-planner-front/node_modules/rxjs/_esm5/internal/util/subscribeToResult.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 721 bytes
RevLine 
[6a3a178]1/** PURE_IMPORTS_START _InnerSubscriber,_subscribeTo,_Observable PURE_IMPORTS_END */
2import { InnerSubscriber } from '../InnerSubscriber';
3import { subscribeTo } from './subscribeTo';
4import { Observable } from '../Observable';
5export function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, innerSubscriber) {
6 if (innerSubscriber === void 0) {
7 innerSubscriber = new InnerSubscriber(outerSubscriber, outerValue, outerIndex);
8 }
9 if (innerSubscriber.closed) {
10 return undefined;
11 }
12 if (result instanceof Observable) {
13 return result.subscribe(innerSubscriber);
14 }
15 return subscribeTo(result)(innerSubscriber);
16}
17//# sourceMappingURL=subscribeToResult.js.map
Note: See TracBrowser for help on using the repository browser.