Hello everyone, I've posted a question on stackove...
# rx
k
Hello everyone, I've posted a question on stackoverflow around Flowable, Rx, Kotlin, Retrofit2. Thanks to take a look if you can 👍 https://stackoverflow.com/questions/45441074/multiple-retrofit2-requests-using-flowable-in-kotlin 2 replies Also very important to note that i did not use only the raw Rxjava2 lib. i used the libs below: RxAndroid
<https://github.com/ReactiveX/RxAndroid>
for
observeOn(AndroidSchedulers.mainThread())
to get the mainThread. This is because i saw your example and you manipulated the UI without specifing the thread you subscribed on. With this you can achieve that your subscription will be handled on the mainThread RxLifecycle
<https://github.com/trello/RxLifecycle>
for
.bindToLifecycle(this)
this will make sure you dont leave memoryleak if the activity is closed but your retrofit2 call did not finished