title: How can I execute array of promises in sequential order?
body: <p>I have an array of promises that need to run in sequential order.</p>
  
  <pre><code>var promises = [promise1, promise2, ..., promiseN];
  </code></pre>
  
  <p>Calling RSVP.all will execute them in parallel:</p>
  
  <pre><code>RSVP.all(promises).then(...); 
  </code></pre>
  
  <p>But, how can I run them in sequence?</p>
  
  <p>I can manually stack them like this</p>
  
  <pre><code>RSVP.resolve()
      .then(promise1)
      .then(promise2)
      ...
      .then(promiseN)
      .then(...);
  </code></pre>
  
  <p>but the problem is that the number of promises varies and array of promises is built dynamically.</p>