mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
13 lines
566 B
JavaScript
13 lines
566 B
JavaScript
|
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
|