title: Execution of Sequence a chain of async web requests with Retrofit and LiveData in android
body: <p>So I have three <code>retrofit web requests</code> that call from <strong>MainActivity</strong> and each call won't depend on each other. </p>
  
  <p>So let's say first one is <code>getImages()</code> , second <code>getCountry()</code>, and the final one <code>getUser()</code></p>
  
  <p>But  have a condition that the next activity shouldn't load until all these request are executed successfully. </p>
  
  <p>So I have two options here </p>
  
  <p>1) Create <strong>nested request</strong> and execute each request onSuccess On each
      response . This seems reliable but hence these are async call I need
      to optimize the time.<br>
   2) Create a variable and increment it on
      each success call , this approach seems time saving but I'm not sure
      this is good practice.</p>
  
  <p>So is there any way that I can get this done . .and I'm not using <strong>RxAndroid</strong></p>