title: Retrofit: How to wait until request call completes before executing next line of code?
body: <p>I have 2 REST request methods; <code>getA()</code> and <code>getB()</code>. Both are asynchronous calls using <code>call.enqueue()</code>. <br/> <br/> I cannot call <code>getB()</code> until I have the results from <code>getA()</code>.
  In <code>onCreateView()</code>, I would call <code>getA()</code> and <code>getB()</code> consecutively. But, <code>getB()</code> would fail because it does not have the results from <code>getA()</code> yet. A way around this problem is, I could call <code>getB()</code> inside <code>getA()</code>, but I don't think that's clean coding. <br/>
  <br/>
  Is there a way to wait until the request from <code>getA()</code> is completed before calling <code>getB()</code> in <code>onCreateView()</code>?</p>