If I write something like this, then both the operation and notification will be on the current thread...
Observable.fromCallable(() -> "Do Something")
.subscribe(System.out::println);
If I do the operation on a background thread like this, then both the operation and notification will be on a background thread...
Observable.fromCallable(() -> "Do Something")
.subscribeOn(Schedulers.io())
.subscribe(System.out::println);
If I want to observe on the main thread and do in the background in Android I would do...
Observable.fromCallable(() -> "Do Something")
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(System.out::println);
But If I was writing a standard Java program, what is the equivalent to state that you want to observe on the main thread?