wishthis/node_modules/rxjs/_esm2015/internal/util/subscribeToResult.js

13 lines
566 B
JavaScript
Raw Normal View History

2022-01-21 08:28:41 +00:00
import { InnerSubscriber } from '../InnerSubscriber';
import { subscribeTo } from './subscribeTo';
import { Observable } from '../Observable';
export function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, innerSubscriber = new InnerSubscriber(outerSubscriber, outerValue, outerIndex)) {
if (innerSubscriber.closed) {
return undefined;
}
if (result instanceof Observable) {
return result.subscribe(innerSubscriber);
}
return subscribeTo(result)(innerSubscriber);
}
//# sourceMappingURL=subscribeToResult.js.map