RxScala is a reactive asynchronous streams API provided in Scala. It lets us perform all those concepts we talked about, such as creating Observables, observers, and subscribing to them. There's a variety of operators available for us to manipulate these Observables. Most of the operators return Observables, hence chaining of Observables is also possible.
To start writing some Observables, we'll start by setting up space so that the library becomes available to us. For that, let's follow some steps:
- On your favorite internet browser, open https://developer.lightbend.com and click on the START A PROJECT button.
- You'll get a few options; just choose Scala and click on CREATE A PROJECT FOR ME!. It'll download the source in a compressed format:
- We can extract that and open it in IntelliJ IDE.
- Once it's opened in IntelliJ, we can add...