Show Menu
Cheatography

Reactive Programming Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

What it is

 
This is precisely the Observer Design Pattern.

maven dependency

<dependency>
    <groupId>io.reactivex.rxjava</groupId>
    <artifactId>rxjava</artifactId>
    <version>1.1.10</version>
</dependency>
 

API

Observable.just("Hello", "World")
          .subscribe(System.out::println);

Observable.from(words)
          .subscribe(System.out::println);