projects
/
dotfiles
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Giant blob of minor changes
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
node_modules
/
coc-prettier
/
node_modules
/
rxjs
/
src
/
internal
/
operators
/
retryWhen.ts
diff --git
a/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/operators/retryWhen.ts
b/.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/operators/retryWhen.ts
index 325742dcb6f752fb1b8f613b7b9cad81f5d098dc..3be9fed71513d7e6ed93d12c8a78e8eaf9d67bac 100644
(file)
--- a/
.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/operators/retryWhen.ts
+++ b/
.config/coc/extensions/node_modules/coc-prettier/node_modules/rxjs/src/internal/operators/retryWhen.ts
@@
-4,11
+4,8
@@
import { Observable } from '../Observable';
import { Subject } from '../Subject';
import { Subscription } from '../Subscription';
import { Subject } from '../Subject';
import { Subscription } from '../Subscription';
-import { OuterSubscriber } from '../OuterSubscriber';
-import { InnerSubscriber } from '../InnerSubscriber';
-import { subscribeToResult } from '../util/subscribeToResult';
-
import { MonoTypeOperatorFunction, TeardownLogic } from '../types';
import { MonoTypeOperatorFunction, TeardownLogic } from '../types';
+import { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';
/**
* Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable
/**
* Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable
@@
-43,11
+40,11
@@
class RetryWhenOperator<T> implements Operator<T, T> {
* @ignore
* @extends {Ignored}
*/
* @ignore
* @extends {Ignored}
*/
-class RetryWhenSubscriber<T, R> extends OuterSubscriber<T, R> {
+class RetryWhenSubscriber<T, R> extends
Simple
OuterSubscriber<T, R> {
- private errors: Subject<any>;
- private retries: Observable<any>;
- private retriesSubscription: Subscription;
+ private errors
?
: Subject<any>;
+ private retries
?
: Observable<any>;
+ private retriesSubscription
?
: Subscription;
constructor(destination: Subscriber<R>,
private notifier: (errors: Observable<any>) => Observable<any>,
constructor(destination: Subscriber<R>,
private notifier: (errors: Observable<any>) => Observable<any>,
@@
-70,10
+67,10
@@
class RetryWhenSubscriber<T, R> extends OuterSubscriber<T, R> {
} catch (e) {
return super.error(e);
}
} catch (e) {
return super.error(e);
}
- retriesSubscription =
subscribeToResult(this, retries
);
+ retriesSubscription =
innerSubscribe(retries, new SimpleInnerSubscriber(this)
);
} else {
} else {
- this.errors =
null
;
- this.retriesSubscription =
null
;
+ this.errors =
undefined
;
+ this.retriesSubscription =
undefined
;
}
this._unsubscribeAndRecycle();
}
this._unsubscribeAndRecycle();
@@
-82,7
+79,7
@@
class RetryWhenSubscriber<T, R> extends OuterSubscriber<T, R> {
this.retries = retries;
this.retriesSubscription = retriesSubscription;
this.retries = retries;
this.retriesSubscription = retriesSubscription;
- errors.next(err);
+ errors
!
.next(err);
}
}
}
}
@@
-91,21
+88,19
@@
class RetryWhenSubscriber<T, R> extends OuterSubscriber<T, R> {
const { errors, retriesSubscription } = this;
if (errors) {
errors.unsubscribe();
const { errors, retriesSubscription } = this;
if (errors) {
errors.unsubscribe();
- this.errors =
null
;
+ this.errors =
undefined
;
}
if (retriesSubscription) {
retriesSubscription.unsubscribe();
}
if (retriesSubscription) {
retriesSubscription.unsubscribe();
- this.retriesSubscription =
null
;
+ this.retriesSubscription =
undefined
;
}
}
- this.retries =
null
;
+ this.retries =
undefined
;
}
}
- notifyNext(outerValue: T, innerValue: R,
- outerIndex: number, innerIndex: number,
- innerSub: InnerSubscriber<T, R>): void {
+ notifyNext(): void {
const { _unsubscribe } = this;
const { _unsubscribe } = this;
- this._unsubscribe = null;
+ this._unsubscribe = null
!
;
this._unsubscribeAndRecycle();
this._unsubscribe = _unsubscribe;
this._unsubscribeAndRecycle();
this._unsubscribe = _unsubscribe;