I have some class 'A', the internal work of which is performed using rx or coroutines with flows. Class 'A' should not return any instances of rx/coroutines (and flows), their work should be hidden, we need Future result for callbacks and observe on custom Observer.
Caller class 'B' can call A's methods on the main(UI) thread or another thread. If the methods are called on Ui thread, it's easy because we can observe on Main thread and use corresponding coroutine scope.
But how do we deal with this situation if the caller's thread is not main?
Use
Handler