Skip to Content
Scala Reactive Programming
book

Scala Reactive Programming

by Rambabu Posa
February 2018
Intermediate to advanced
552 pages
13h 46m
English
Packt Publishing
Content preview from Scala Reactive Programming

Extending RxScala HelloWorld with Observer

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:

  1. Develop HelloWorldApp as shown here:

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) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Scala Programming Projects

Scala Programming Projects

Mikael Valot, Nicolas Jorand
Learning Scala

Learning Scala

Jason Swartz
Functional Programming in Scala

Functional Programming in Scala

Runar Bjarnason, Paul Chiusano

Publisher Resources

ISBN: 9781787288645Supplemental Content