will be emitting the sequences of data items that the entities who are interested in the data they provide, will be subscribing. • It implements all the operators mentioned before to be able to transform the data streams. • Observables can be divided in two types: “Hot” observables which might emit data as soon as they are created and “Cold” observables which wait until an Observer subscribes to it.
their asynchronous data streams and the thread on which Observers consume those data streams. • RxJava allows us to create and consume asynchronous data streams on any thread. Observable.create(new Observable.OnSubscribe<Story>() { //... }) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread());
use RxJava within Activity without causing leaks. developed by Trello. https://github.com/trello/RxLifecycle RxBinding by Jake Wharton. Binding API’s for UI widgets. https://github.com/JakeWharton/RxBinding