Skip to content

Commit

Permalink
ReactiveX#238: Initial commit to implement Single and Completable in …
Browse files Browse the repository at this point in the history
…RxScala1
  • Loading branch information
Mohamed El Gabbouch committed Jul 23, 2018
1 parent d063641 commit 25611d9
Show file tree
Hide file tree
Showing 4 changed files with 1,020 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/scala/rx/lang/scala/JavaConversions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ object JavaConversions {
}
}

implicit def toScalaSingle[T](single: rx.Single[_ <: T]): Single[T] = {
new Single[T]{
val asJavaSingle = single
}
}

implicit def toJavaOperator[T, R](operator: Subscriber[R] => Subscriber[T]): rx.Observable.Operator[R, T] = {
new rx.Observable.Operator[R, T] {
override def call(subscriber: rx.Subscriber[_ >: R]): rx.Subscriber[_ >: T] = {
Expand Down
Loading

0 comments on commit 25611d9

Please sign in to comment.