title: Polling in Asynquence
body: <p>I'd like to implement polling in asynquense. I have been able to do the polling via recursion, but I'm not getting control back to the main sequence once the polling is complete.</p>
  
  <p>The example code: </p>
  
  <pre><code>function countdown(count){
      return ASQ().then(function(done){
          //  This is where the call http call would be made...
          console.log("Countdown: " +count);
          if (count){
              return countdown(count-1);
          }
          done();
      })
  }
  function viewSvg(visId) {
      console.log("viewSvg");
  
      ASQ()
          .then(function(done) {
              console.log("Stage 1");
              done();
          })
          .val(4)
          .seq(countdown)
          .then(function(done){
              console.log("Stage 5");
              done();
          });
  </code></pre>
  
  <p>Produces the results:</p>
  
  <pre><code>Stage 1
  Countdown: 4
  Countdown: 3
  Countdown: 2
  Countdown: 1
  Countdown: 0
  </code></pre>
  
  <p>Note that Stage 5 is not printed:</p>
  
  <p>I have created a jsFiddle <a href="http://jsfiddle.net/hamish/dw63uvmh/5/" rel="nofollow">here</a></p>
  
  <p>I'm sure I'm just doing something simple wrong, can anyone give me some assistance?</p>
  
  <p>When I was learning asnquence, I noticed a similar behaviour (ie, control did not return to the main sequence) when I was calling .then(my_function) where my_function also created a sequence. I worked out that calling .seq() was the right thing to do, but it doesn't appear to work with recursion...</p>