@@ -10903,7 +10903,7 @@ public final Observable<Timed<T>> timeInterval(TimeUnit unit, Scheduler schedule
10903
10903
*
10904
10904
* @param <V>
10905
10905
* the timeout value type (ignored)
10906
- * @param timeoutSelector
10906
+ * @param itemTimeoutIndicator
10907
10907
* a function that returns an ObservableSource for each item emitted by the source
10908
10908
* ObservableSource and that determines the timeout window for the subsequent item
10909
10909
* @return an Observable that mirrors the source ObservableSource, but notifies observers of a
@@ -10912,8 +10912,8 @@ public final Observable<Timed<T>> timeInterval(TimeUnit unit, Scheduler schedule
10912
10912
* @see <a href="http://reactivex.io/documentation/operators/timeout.html">ReactiveX operators documentation: Timeout</a>
10913
10913
*/
10914
10914
@SchedulerSupport(SchedulerSupport.NONE)
10915
- public final <V> Observable<T> timeout(Function<? super T, ? extends ObservableSource<V>> timeoutSelector ) {
10916
- return timeout0(null, timeoutSelector , null);
10915
+ public final <V> Observable<T> timeout(Function<? super T, ? extends ObservableSource<V>> itemTimeoutIndicator ) {
10916
+ return timeout0(null, itemTimeoutIndicator , null);
10917
10917
}
10918
10918
10919
10919
/**
@@ -10932,7 +10932,7 @@ public final <V> Observable<T> timeout(Function<? super T, ? extends ObservableS
10932
10932
*
10933
10933
* @param <V>
10934
10934
* the timeout value type (ignored)
10935
- * @param timeoutSelector
10935
+ * @param itemTimeoutIndicator
10936
10936
* a function that returns an ObservableSource, for each item emitted by the source ObservableSource, that
10937
10937
* determines the timeout window for the subsequent item
10938
10938
* @param other
@@ -10943,10 +10943,10 @@ public final <V> Observable<T> timeout(Function<? super T, ? extends ObservableS
10943
10943
* @see <a href="http://reactivex.io/documentation/operators/timeout.html">ReactiveX operators documentation: Timeout</a>
10944
10944
*/
10945
10945
@SchedulerSupport(SchedulerSupport.NONE)
10946
- public final <V> Observable<T> timeout(Function<? super T, ? extends ObservableSource<V>> timeoutSelector ,
10946
+ public final <V> Observable<T> timeout(Function<? super T, ? extends ObservableSource<V>> itemTimeoutIndicator ,
10947
10947
ObservableSource<? extends T> other) {
10948
10948
ObjectHelper.requireNonNull(other, "other is null");
10949
- return timeout0(null, timeoutSelector , other);
10949
+ return timeout0(null, itemTimeoutIndicator , other);
10950
10950
}
10951
10951
10952
10952
/**
@@ -11014,16 +11014,16 @@ public final Observable<T> timeout(long timeout, TimeUnit timeUnit, ObservableSo
11014
11014
* maximum duration between items before a timeout occurs
11015
11015
* @param timeUnit
11016
11016
* the unit of time that applies to the {@code timeout} argument
11017
- * @param other
11018
- * the ObservableSource to use as the fallback in case of a timeout
11019
11017
* @param scheduler
11020
11018
* the {@link Scheduler} to run the timeout timers on
11019
+ * @param other
11020
+ * the ObservableSource to use as the fallback in case of a timeout
11021
11021
* @return the source ObservableSource modified so that it will switch to the fallback ObservableSource in case of a
11022
11022
* timeout
11023
11023
* @see <a href="http://reactivex.io/documentation/operators/timeout.html">ReactiveX operators documentation: Timeout</a>
11024
11024
*/
11025
11025
@SchedulerSupport(SchedulerSupport.CUSTOM)
11026
- public final Observable<T> timeout(long timeout, TimeUnit timeUnit, ObservableSource<? extends T> other, Scheduler scheduler ) {
11026
+ public final Observable<T> timeout(long timeout, TimeUnit timeUnit, Scheduler scheduler, ObservableSource<? extends T> other) {
11027
11027
ObjectHelper.requireNonNull(other, "other is null");
11028
11028
return timeout0(timeout, timeUnit, other, scheduler);
11029
11029
}
@@ -11070,10 +11070,10 @@ public final Observable<T> timeout(long timeout, TimeUnit timeUnit, Scheduler sc
11070
11070
* the first timeout value type (ignored)
11071
11071
* @param <V>
11072
11072
* the subsequent timeout value type (ignored)
11073
- * @param firstTimeoutSelector
11073
+ * @param firstTimeoutIndicator
11074
11074
* a function that returns an ObservableSource that determines the timeout window for the first source
11075
11075
* item
11076
- * @param timeoutSelector
11076
+ * @param itemTimeoutIndicator
11077
11077
* a function that returns an ObservableSource for each item emitted by the source ObservableSource and that
11078
11078
* determines the timeout window in which the subsequent source item must arrive in order to
11079
11079
* continue the sequence
@@ -11083,10 +11083,10 @@ public final Observable<T> timeout(long timeout, TimeUnit timeUnit, Scheduler sc
11083
11083
* @see <a href="http://reactivex.io/documentation/operators/timeout.html">ReactiveX operators documentation: Timeout</a>
11084
11084
*/
11085
11085
@SchedulerSupport(SchedulerSupport.NONE)
11086
- public final <U, V> Observable<T> timeout(Callable<? extends ObservableSource<U>> firstTimeoutSelector ,
11087
- Function<? super T, ? extends ObservableSource<V>> timeoutSelector ) {
11088
- ObjectHelper.requireNonNull(firstTimeoutSelector , "firstTimeoutSelector is null");
11089
- return timeout0(firstTimeoutSelector, timeoutSelector , null);
11086
+ public final <U, V> Observable<T> timeout(ObservableSource<U> firstTimeoutIndicator ,
11087
+ Function<? super T, ? extends ObservableSource<V>> itemTimeoutIndicator ) {
11088
+ ObjectHelper.requireNonNull(firstTimeoutIndicator , "firstTimeoutIndicator is null");
11089
+ return timeout0(firstTimeoutIndicator, itemTimeoutIndicator , null);
11090
11090
}
11091
11091
11092
11092
/**
@@ -11104,10 +11104,10 @@ public final <U, V> Observable<T> timeout(Callable<? extends ObservableSource<U>
11104
11104
* the first timeout value type (ignored)
11105
11105
* @param <V>
11106
11106
* the subsequent timeout value type (ignored)
11107
- * @param firstTimeoutSelector
11107
+ * @param firstTimeoutIndicator
11108
11108
* a function that returns an ObservableSource which determines the timeout window for the first source
11109
11109
* item
11110
- * @param timeoutSelector
11110
+ * @param itemTimeoutIndicator
11111
11111
* a function that returns an ObservableSource for each item emitted by the source ObservableSource and that
11112
11112
* determines the timeout window in which the subsequent source item must arrive in order to
11113
11113
* continue the sequence
@@ -11117,17 +11117,17 @@ public final <U, V> Observable<T> timeout(Callable<? extends ObservableSource<U>
11117
11117
* either the first item emitted by the source ObservableSource or any subsequent item doesn't arrive
11118
11118
* within time windows defined by the timeout selectors
11119
11119
* @throws NullPointerException
11120
- * if {@code timeoutSelector } is null
11120
+ * if {@code itemTimeoutIndicator } is null
11121
11121
* @see <a href="http://reactivex.io/documentation/operators/timeout.html">ReactiveX operators documentation: Timeout</a>
11122
11122
*/
11123
11123
@SchedulerSupport(SchedulerSupport.NONE)
11124
11124
public final <U, V> Observable<T> timeout(
11125
- Callable<? extends ObservableSource<U>> firstTimeoutSelector ,
11126
- Function<? super T, ? extends ObservableSource<V>> timeoutSelector ,
11125
+ ObservableSource<U> firstTimeoutIndicator ,
11126
+ Function<? super T, ? extends ObservableSource<V>> itemTimeoutIndicator ,
11127
11127
ObservableSource<? extends T> other) {
11128
- ObjectHelper.requireNonNull(firstTimeoutSelector , "firstTimeoutSelector is null");
11128
+ ObjectHelper.requireNonNull(firstTimeoutIndicator , "firstTimeoutIndicator is null");
11129
11129
ObjectHelper.requireNonNull(other, "other is null");
11130
- return timeout0(firstTimeoutSelector, timeoutSelector , other);
11130
+ return timeout0(firstTimeoutIndicator, itemTimeoutIndicator , other);
11131
11131
}
11132
11132
11133
11133
private Observable<T> timeout0(long timeout, TimeUnit timeUnit, ObservableSource<? extends T> other,
@@ -11138,11 +11138,11 @@ private Observable<T> timeout0(long timeout, TimeUnit timeUnit, ObservableSource
11138
11138
}
11139
11139
11140
11140
private <U, V> Observable<T> timeout0(
11141
- Callable<? extends ObservableSource<U>> firstTimeoutSelector ,
11142
- Function<? super T, ? extends ObservableSource<V>> timeoutSelector ,
11141
+ ObservableSource<U> firstTimeoutIndicator ,
11142
+ Function<? super T, ? extends ObservableSource<V>> itemTimeoutIndicator ,
11143
11143
ObservableSource<? extends T> other) {
11144
- ObjectHelper.requireNonNull(timeoutSelector , "timeoutSelector is null");
11145
- return RxJavaPlugins.onAssembly(new ObservableTimeout<T, U, V>(this, firstTimeoutSelector, timeoutSelector , other));
11144
+ ObjectHelper.requireNonNull(itemTimeoutIndicator , "itemTimeoutIndicator is null");
11145
+ return RxJavaPlugins.onAssembly(new ObservableTimeout<T, U, V>(this, firstTimeoutIndicator, itemTimeoutIndicator , other));
11146
11146
}
11147
11147
11148
11148
/**
0 commit comments