title: Promise delay implementation
body: <p>I've tried to implement delays in Promises this way:</p>
  
  <pre><code>function postAndSetContentfulId (client, code) {
    return delay().then(_ =&gt; {
      return postToContentful(client, code).then(setCode)
    })
  }
  
  function delay () {
    let multipler = Math.floor((count++) / 100) + 1
    let milliseconds = multipler * 2000
    return new Promise(resolve =&gt; setTimeout(() =&gt; resolve(), milliseconds))
  }
  </code></pre>
  
  <p>I need to delay an third party API call in order to avoid rate limiting issues. This seems not to be actually working as I get all executed in a bunch.</p>