title: How to call a generator (async) function on an interval basis
body: <p>I am building an app that must poll remote devices (generator fn <code>sendRequests()</code>) every 2 seconds. </p>
  
  <p>What's the right way to call the generator fn using setInterval, which isn't a generator and doesn't yield</p>
  
  <pre><code>function * sendRequests() {
    // multiple remote async requests are sent
  }
  
  var timer = setInterval(() =&gt; {
    // yield sendRequests()
  }, 2000)
  </code></pre>