As in the first one “wins”
# rx
a
As in the first one “wins”
t
is it the same with
observeOn
as there the last one wins?
a
No
With
observeOn
you can basically go to another thread after each operation
t
ok, I just sorted it out in my head 🙂 thanks! but what happens, if i reverse their order in the above example? I guess
a.map{ b }
is still on io, and
.map { d }
is still on computation, but where is
.map { c }
going to get executed? I would guess
observeOn
"wins", so it's computation.
e
nope,
.map{c}
will still be on
io
since nothing changes the thread yet, so it stays on the current thread, which is
io