File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
language-adaptors/rxjava-scala/src/main/scala/rx/lang/scala Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -2926,13 +2926,26 @@ trait Observable[+T]
2926
2926
}
2927
2927
2928
2928
/**
2929
- * Converts an Observable into a [[rx.lang.scala.observables.BlockingObservable ]] (an Observable with blocking
2930
- * operators).
2929
+ * Converts an Observable into a [[BlockingObservable ]] (an Observable with blocking operators).
2931
2930
*
2931
+ * @return a [[BlockingObservable ]] version of this Observable
2932
2932
* @see <a href="https://github.com/Netflix/RxJava/wiki/Blocking-Observable-Operators">Blocking Observable Operators</a>
2933
2933
*/
2934
+ @ deprecated(" Use `toBlocking` instead" , " 0.19" )
2934
2935
def toBlockingObservable : BlockingObservable [T ] = {
2935
- new BlockingObservable [T ](asJavaObservable.toBlockingObservable)
2936
+ new BlockingObservable [T ](asJavaObservable.toBlocking)
2937
+ }
2938
+
2939
+ /**
2940
+ * Converts an Observable into a [[BlockingObservable ]] (an Observable with blocking
2941
+ * operators).
2942
+ *
2943
+ * @return a [[BlockingObservable ]] version of this Observable
2944
+ * @see <a href="https://github.com/Netflix/RxJava/wiki/Blocking-Observable-Operators">Blocking Observable Operators</a>
2945
+ * @since 0.19
2946
+ */
2947
+ def toBlocking : BlockingObservable [T ] = {
2948
+ new BlockingObservable [T ](asJavaObservable.toBlocking)
2936
2949
}
2937
2950
2938
2951
/**
You can’t perform that action at this time.
0 commit comments