title: jquery sleep not executing on ajax reques
body: <p>I have an Ajax request waiting for response from another process.</p>
  
  <pre><code>function test() {
      var flag = 0;
      while (flag === 0) {
          $.ajax({
              url: "cs/CheckForProcess",
              async: false,
              success: function(data) {
                  if (data !== 'NotReady') {
                      $('#results').html(data);
                      flag = 1;
                  } else {
                      $('#results').html('&lt;h1&gt;Processing...&lt;/h1&gt;');
                      setTimeout(function() {
                      }, 6000);
                  }
              }
          });
      }
  }
  </code></pre>
  
  <p>the problem is that the setTimout isnt working although i see in debug mode that the else condition is executed.</p>
  
  <hr>
  
  <p>EDIT:
  i want the next ajax request to be sent only 6 seconds after validating the process is not ready.</p>
  
  <p>what am i missing?
  Thx.</p>