These are chat archives for ReactiveX/RxJava

15th
Jun 2016
Artem Zinnatullin :slowpoke:
@artem-zinnatullin
Jun 15 2016 20:44

is flatMap by default parallel ?

It depends on how you define "parallel", it can work with emissions from different threads, but by itself it doesn't schedule work on schedulers

you probably need flatMap(i - > i.observeOn(scheduler))
Dorus
@Dorus
Jun 15 2016 20:59
True, but Observables are inherent async, you do not need observeOn for that. Observable.just() wont spawn a thread, Rx.Observable.timer() would.
As would many other operators
flatMap(e => asyncCall()) certainly would run in parallel.