title: Delay between request/response
body: <p>The problem:
    I have 2 methods:  </p>
  
  <pre><code>proccessRequest();
  proccessResponse();
  </code></pre>
  
  <p>if I run them so then I get an error because the request proccessing take too long and the response part gives an error. But if I add Thread.sleep(300); between them, then it run fine.</p>
  
  <pre><code>proccessRequest();
  Thread.sleep(300);
  proccessResponse();
  </code></pre>
  
  <p>What would be a good solution for this? Stopping the app with Thread.sleep isnt a good solution.
  Should I use some kind of timer?</p>