diff options
Diffstat (limited to 'node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js')
| -rw-r--r-- | node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js b/node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js deleted file mode 100644 index ad922ab..0000000 --- a/node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js +++ /dev/null @@ -1,29 +0,0 @@ -import { map } from './map'; -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function exhaustMap(project, resultSelector) { - if (resultSelector) { - return function (source) { - return source.pipe(exhaustMap(function (a, i) { return innerFrom(project(a, i)).pipe(map(function (b, ii) { return resultSelector(a, b, i, ii); })); })); - }; - } - return operate(function (source, subscriber) { - var index = 0; - var innerSub = null; - var isComplete = false; - source.subscribe(createOperatorSubscriber(subscriber, function (outerValue) { - if (!innerSub) { - innerSub = createOperatorSubscriber(subscriber, undefined, function () { - innerSub = null; - isComplete && subscriber.complete(); - }); - innerFrom(project(outerValue, index++)).subscribe(innerSub); - } - }, function () { - isComplete = true; - !innerSub && subscriber.complete(); - })); - }); -} -//# sourceMappingURL=exhaustMap.js.map
\ No newline at end of file |
