Clarifying RxJava Observable Threading with Retrofit -


at http://square.github.io/retrofit/ talks asynchronous, there phrase "observable requests subscribed asynchronously , observed on same thread executed http request" wanted clarify.

so in case thread execute http request: lets main thread makes call observable getuserphoto(@path("id") int id)? main thread or thread subscribe request execute http request?

regarding documentation, thread execute request.

if result of request change in view, may need observe (consume) result in main thread. in case, add call observeon method before subscribe observable.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -