I am trying to explore Retrofit+OkHttp on Android. Here\'s some code I found online :
RestAdapter restAdapter = new RestAdapter.Builder().setExecutors(execu
The method that return a value does it Synchronously.
@GET("/user/{id}/asset") Asset getUserAsset(@Path("id") int id);
To do it Asynchronous all you need is to add a Callback.
@GET("/user/{id}/asset") void getUserAsset(@Path("id") int id, Callback cb);
Hope this Helps.
Regards!