Sorry if this is very nooby but i'm struggling to ...
# rx
p
Sorry if this is very nooby but i'm struggling to understand something about RxJava. I have the above methods that together check if a session is valid then login then get messages from an api. What I don't understand is where the correct place to subscribe to login would be? For instance if I moved the
.subscribe()
call to
fun login()
- making the function Unit - how would that affect the stream differently to how it works now? I've tried it and it works either way but I don't know how they're different.