February 2018
Intermediate to advanced
552 pages
13h 46m
English
In the preceding example, we explored only two RxScala components—Observable and Subscription. Now, it's time to explore all three components with the same example. We will use the same project and create a new Scala app for this purpose.
Perform the following steps to develop and explore it:
RxScalaHelloWorld_With_Observable_Subscription_Observer.scala:
package com.packt.publishing.rxscala.hello
import rx.lang.scala.Observable
import rx.lang.scala.Observer
import scala.language.{implicitConversions, postfixOps}
object RxScalaHelloWorld_With_Observable_Subscription_Observer extends App { val helloWorld: String = "Hello RxScala World!" val observable = Observable.from(helloWorld) ...