Skip to content

Commit e761a08

Browse files
author
Laimonas Turauskas
committed
Added extension method for static Observable.switchOnNext method
1 parent 99bb9fe commit e761a08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/kotlin/rx/lang/kotlin/observables.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,5 @@ public inline fun <T> Observable<T>.subscribeWith( body : FunctionSubscriberModi
106106
modifier.body()
107107
return subscribe(modifier.subscriber)
108108
}
109+
110+
public fun <T> Observable<Observable<T>>.switchOnNext(): Observable<T> = Observable.switchOnNext(this)

0 commit comments

Comments
 (0)