👋 I need a bit help, I'm trying go from an async complex op in rx to a simpler implementation using coroutines, so first step is to get my observable returning a value, to do so I'm using
Thing is that when I cancel the coroutine that calls the function, it doesn't dispose the observable, is there anyway to make the function to cancel immediately? as the doc says even if the coroutine is cancelled it doesn't mean that the code will be cancelled but instead we should check regularly inside that code whether is't cancelled or not, but, is there any alternative?
v
Vsevolod Tolstopyatov [JB]
04/23/2018, 3:31 PM
Hi, for every coming subscriber you have to register its cancellation.
Essentially something like