I'm developing a quite old application and need to handle between new rx way and old legacy threads. I started using repository pattern where all is emitted in Observables. And now I wanted to use my new repositories in old code. In RxJava it is quite simple, becuase I can use blockingGet() and my custom thread is waiting until something is produced or observable completes. I found that there is something like RxBlocking, but:
- One thing is that there is mentioned in documentation that it is developed for testing only and should not be used in production.
- I'm getting many crashes with EXC_BAD_ACCESS somewhere inside the .first() method.
Can you provide me some ideas how to handle the problem?