@raulraja How to you rewind/restore the stack when dealing with observables that can run on different dispatchers/schedulers… That must not be easy to do…
r
raulraja
06/24/2019, 3:35 PM
The stack is just the coroutine internal state and context switching is guaranteed to happen always in between flatMap
raulraja
06/24/2019, 3:35 PM
For example IO context switchs are like that
raulraja
06/24/2019, 3:36 PM
IO.unit.flatMap { switch(NonBlocking) }
raulraja
06/24/2019, 3:36 PM
also cancelation is automatic and not cooperative with Fx unlike coroutines