aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/rxjs/dist/esm/internal/operators/repeatWhen.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/rxjs/dist/esm/internal/operators/repeatWhen.js')
-rw-r--r--node_modules/rxjs/dist/esm/internal/operators/repeatWhen.js46
1 files changed, 0 insertions, 46 deletions
diff --git a/node_modules/rxjs/dist/esm/internal/operators/repeatWhen.js b/node_modules/rxjs/dist/esm/internal/operators/repeatWhen.js
deleted file mode 100644
index 82ecdd9..0000000
--- a/node_modules/rxjs/dist/esm/internal/operators/repeatWhen.js
+++ /dev/null
@@ -1,46 +0,0 @@
-import { innerFrom } from '../observable/innerFrom';
-import { Subject } from '../Subject';
-import { operate } from '../util/lift';
-import { createOperatorSubscriber } from './OperatorSubscriber';
-export function repeatWhen(notifier) {
- return operate((source, subscriber) => {
- let innerSub;
- let syncResub = false;
- let completions$;
- let isNotifierComplete = false;
- let isMainComplete = false;
- const checkComplete = () => isMainComplete && isNotifierComplete && (subscriber.complete(), true);
- const getCompletionSubject = () => {
- if (!completions$) {
- completions$ = new Subject();
- innerFrom(notifier(completions$)).subscribe(createOperatorSubscriber(subscriber, () => {
- if (innerSub) {
- subscribeForRepeatWhen();
- }
- else {
- syncResub = true;
- }
- }, () => {
- isNotifierComplete = true;
- checkComplete();
- }));
- }
- return completions$;
- };
- const subscribeForRepeatWhen = () => {
- isMainComplete = false;
- innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, () => {
- isMainComplete = true;
- !checkComplete() && getCompletionSubject().next();
- }));
- if (syncResub) {
- innerSub.unsubscribe();
- innerSub = null;
- syncResub = false;
- subscribeForRepeatWhen();
- }
- };
- subscribeForRepeatWhen();
- });
-}
-//# sourceMappingURL=repeatWhen.js.map \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage