New to RxJava and Reactive Programming so to speak.
I'm trying to map two functions in parallel as part of a single Observable pipeline, but doesn't seem to work this way. Here is my code.
Observable.fromCallable(thatReturnsNumberOne())
.observeOn(newThread())
.map(doubleIt())
.observeOn(newThread())
.map(doubleIt())
.subscribe(testSubscriber);
I'd like the 2 doubleIt() calls to be spawned at the same time. But it always appears to be that once the first doubleIt() finishes, only then the second one starts. ie blocking/sequential.
What am I missing?