You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Returns an Observable that emits items that are the results of invoking a specified selector on items
@@ -7059,7 +7079,7 @@ public final <R> Observable<R> replay(Func1<? super Observable<T>, ? extends Obs
7059
7079
}
7060
7080
return OperatorReplay.multicastSelector(
7061
7081
InternalObservableUtils.createReplaySupplier(this, bufferSize, time, unit, scheduler), selector);
7062
-
}
7082
+
}
7063
7083
7064
7084
/**
7065
7085
* Returns an Observable that emits items that are the results of invoking a specified selector on items
@@ -7093,7 +7113,7 @@ public final <R> Observable<R> replay(Func1<? super Observable<T>, ? extends Obs
7093
7113
public final <R> Observable<R> replay(final Func1<? super Observable<T>, ? extends Observable<R>> selector, final int bufferSize, final Scheduler scheduler) {
* Returns an Observable that emits items that are the results of invoking a specified selector on items
@@ -7162,7 +7182,7 @@ public final <R> Observable<R> replay(Func1<? super Observable<T>, ? extends Obs
7162
7182
public final <R> Observable<R> replay(Func1<? super Observable<T>, ? extends Observable<R>> selector, final long time, final TimeUnit unit, final Scheduler scheduler) {
7163
7183
return OperatorReplay.multicastSelector(
7164
7184
InternalObservableUtils.createReplaySupplier(this, time, unit, scheduler), selector);
7165
-
}
7185
+
}
7166
7186
7167
7187
/**
7168
7188
* Returns an Observable that emits items that are the results of invoking a specified selector on items
@@ -7194,7 +7214,7 @@ public final <R> Observable<R> replay(final Func1<? super Observable<T>, ? exten
// if an unhandled error occurs executing the onSubscribe we will propagate it
8583
-
try {
8584
-
subscriber.onError(hook.onSubscribeError(e));
8585
-
} catch (Throwable e2) {
8586
-
Exceptions.throwIfFatal(e2);
8587
-
// if this happens it means the onError itself failed (perhaps an invalid function implementation)
8588
-
// so we are unable to propagate the error correctly and will just throw
8602
+
// if an unhandled error occurs executing the onSubscribe we will propagate it
8603
+
try {
8604
+
subscriber.onError(hook.onSubscribeError(e));
8605
+
} catch (Throwable e2) {
8606
+
Exceptions.throwIfFatal(e2);
8607
+
// if this happens it means the onError itself failed (perhaps an invalid function implementation)
8608
+
// so we are unable to propagate the error correctly and will just throw
8589
8609
RuntimeException r = new OnErrorFailedException("Error occurred attempting to subscribe [" + e.getMessage() + "] and then again while trying to pass to onError.", e2);
8590
-
// TODO could the hook be the cause of the error in the on error handling.
8591
-
hook.onSubscribeError(r);
8592
-
// TODO why aren't we throwing the hook's return value.
8593
-
throw r;
8594
-
}
8610
+
// TODO could the hook be the cause of the error in the on error handling.
8611
+
hook.onSubscribeError(r);
8612
+
// TODO why aren't we throwing the hook's return value.
0 commit comments