@@ -3254,11 +3254,11 @@ trait Observable[+T]
3254
3254
* @see <a href="https://github.com/Netflix/RxJava/wiki/Error-Handling-Operators#retrywhen">RxJava Wiki: retryWhen()</a>
3255
3255
* @since 0.20
3256
3256
*/
3257
- def retryWhen (notificationHandler : Observable [Notification [Any ]] => Observable [Notification [ Any ] ], scheduler : Scheduler ): Observable [T ] = {
3258
- val f : Func1 [_ >: rx.Observable [_ <: rx.Notification [_ <: Any ]], _ <: rx.Observable [_ <: rx. Notification [_ <: Any ] ]] =
3257
+ def retryWhen (notificationHandler : Observable [Notification [Any ]] => Observable [Any ], scheduler : Scheduler ): Observable [T ] = {
3258
+ val f : Func1 [_ >: rx.Observable [_ <: rx.Notification [_ <: Any ]], _ <: rx.Observable [_ <: Any ]] =
3259
3259
(jOn : rx.Observable [_ <: rx.Notification [_ <: Any ]]) => {
3260
3260
val on = toScalaObservable[rx.Notification [_ <: Any ]](jOn).map({ jN => toScalaNotification[Any ](jN) })
3261
- notificationHandler(on).map({ n => n.asJavaNotification }). asJavaObservable
3261
+ notificationHandler(on).asJavaObservable
3262
3262
}
3263
3263
3264
3264
toScalaObservable[T ](asJavaObservable.retryWhen(f, scheduler))
@@ -3347,11 +3347,11 @@ trait Observable[+T]
3347
3347
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229428.aspx">MSDN: Observable.Repeat</a>
3348
3348
* @since 0.20
3349
3349
*/
3350
- def repeatWhen (notificationHandler : Observable [Notification [Any ]] => Observable [Notification [ Any ] ], scheduler : Scheduler ): Observable [T ] = {
3351
- val f : Func1 [_ >: rx.Observable [_ <: rx.Notification [_ <: Any ]], _ <: rx.Observable [_ <: rx. Notification [_ <: Any ] ]] =
3350
+ def repeatWhen (notificationHandler : Observable [Notification [Any ]] => Observable [Any ], scheduler : Scheduler ): Observable [T ] = {
3351
+ val f : Func1 [_ >: rx.Observable [_ <: rx.Notification [_ <: Any ]], _ <: rx.Observable [_ <: Any ]] =
3352
3352
(jOn : rx.Observable [_ <: rx.Notification [_ <: Any ]]) => {
3353
3353
val on = toScalaObservable[rx.Notification [_ <: Any ]](jOn).map({ jN => toScalaNotification[Any ](jN) })
3354
- notificationHandler(on).map({ n => n.asJavaNotification }). asJavaObservable
3354
+ notificationHandler(on).asJavaObservable
3355
3355
}
3356
3356
3357
3357
toScalaObservable[T ](asJavaObservable.repeatWhen(f, scheduler))
@@ -3377,11 +3377,11 @@ trait Observable[+T]
3377
3377
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229428.aspx">MSDN: Observable.Repeat</a>
3378
3378
* @since 0.20
3379
3379
*/
3380
- def repeatWhen (notificationHandler : Observable [Notification [Any ]] => Observable [Notification [ Any ] ]): Observable [T ] = {
3381
- val f : Func1 [_ >: rx.Observable [_ <: rx.Notification [_ <: Any ]], _ <: rx.Observable [_ <: rx. Notification [_ <: Any ] ]] =
3380
+ def repeatWhen (notificationHandler : Observable [Notification [Any ]] => Observable [Any ]): Observable [T ] = {
3381
+ val f : Func1 [_ >: rx.Observable [_ <: rx.Notification [_ <: Any ]], _ <: rx.Observable [_ <: Any ]] =
3382
3382
(jOn : rx.Observable [_ <: rx.Notification [_ <: Any ]]) => {
3383
3383
val on = toScalaObservable[rx.Notification [_ <: Any ]](jOn).map({ jN => toScalaNotification[Any ](jN) })
3384
- notificationHandler(on).map({ n => n.asJavaNotification }). asJavaObservable
3384
+ notificationHandler(on).asJavaObservable
3385
3385
}
3386
3386
3387
3387
toScalaObservable[T ](asJavaObservable.repeatWhen(f))
0 commit comments