How can I call multiple requests at the same time in Retrofit 2

Viewed 10600

I have two different REST method, and I want to call them at the same time. How can I do this in Retrofit 2 ?

I can call them one by one of course, but is there any suggested method in retrofit ?

I expect something like:

Call<...> call1 = myService.getCall1();
Call<...> call2 = myService.getCall2();

MagicRetrofit.call (call1,call2,new Callback(...) {...} );  // and this calls them at the same time, but give me result with one method
2 Answers
Related