Skip to content

Commit b7cfcba

Browse files
deprecate rx.lang.scala.Observable.create[T](Observer[T]=>Subscription)
1 parent b7515ed commit b7cfcba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

language-adaptors/rxjava-scala/src/main/scala/rx/lang/scala/Observable.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,6 +2285,7 @@ object Observable {
22852285
* @return
22862286
* an Observable that, when an [[rx.lang.scala.Observer]] subscribes to it, will execute the given function.
22872287
*/
2288+
@deprecated("Use `apply[T](Subscriber[T] => Unit)` instead", "0.17.0")
22882289
def create[T](func: Observer[T] => Subscription): Observable[T] = {
22892290
toScalaObservable[T](rx.Observable.create(new OnSubscribeFunc[T] {
22902291
def onSubscribe(t1: rx.Observer[_ >: T]): rx.Subscription = {

0 commit comments

Comments
 (0)