custom Kotlin extension but thank you. Observe on Schedulers.io() and subscribe on Schedulers.io(). Same thing for asyncUI
António Bastião
11/14/2019, 3:39 PM
but the latter one observe on main thread
t
tseisel
11/14/2019, 4:53 PM
Your problem is due to the
repeat
operator : it will re-emit the same
Unit
undefinitely, every
REPEAT_DELAY
. Maybe you could tell us more about what you want to achieve ?
a
António Bastião
11/14/2019, 5:08 PM
It’s solved. Noob thing. Sorry. Anyway, the repeat is intentional and that’s the expected behavior. The problem was the requestData() to be called twice every time the repeat was executed and not that it repeats per every desired amount of time.