February 2020
Intermediate to advanced
412 pages
9h 36m
English
The RxJava Observable is much more robust and expressive than java.util.concurrent.Future, but if you have existing libraries that yield Future, you can easily turn it into an Observable using Observable.future():
Future<String> future = ...; Observable.fromFuture(future) .map(String::length) .subscribe(System.out::println);
Read now
Unlock full access