title: Converting recursive function to node-cron job
body: <p>I'd like to convert a recursive function with setTimeout to a node-cron job, but am not sure how to return the parameters:</p>
  <pre class="lang-js prettyprint-override"><code>async function Infinite(page, initData, updateData = new Map()) {
    // Check for updates
    // If found add to updateData
    // Delay function
    return Infinite(page, initData, updateData);
  }
  </code></pre>
  <p>to</p>
  <pre class="lang-js prettyprint-override"><code> cron.schedule('*/15 8-18 * * *', (/*page, initData, updateData = new Map() ??*/) =&gt; {
    // Check for updates
    // If found add to updateData
    // return ???
   }
  </code></pre>
  <p>I imagine there will need to be IIFE placed in there somewhere, any help is welcome!</p>