title: retrieve logs from server while performing a "parallel" promise.all( request to the server) (parallel challenge!)
body: <p>Arriving with a theory question :)</p>
  <p>I have a front that sends (axios) N requests in a Promise.all() with a map function. This works fine. Each time one of the promises is good, I have a little table that gets updated with each request's answer until I get the full table and the array of the answers at the end. ✅</p>
  <p>The problem comes when I want to read, at the same time, the logs of the server</p>
  <p>So my objective is to run another axios request to my express.js server that will run each 2 seconds to retrieve the logs of the last 2 seconds, this way I could show the logs of what is happening with each answer in real time.</p>
  <p>Any ideas of how doing this two tasks in parallel?</p>
  <p>In the front I'm using react and the promise.All has this is structure:</p>
  <pre><code>setIsLoading(true); // setting a flag to know this is running
    
  const doAllTheTable = await Promise.all(
  
     tableData.map(async (lineOfMyTable) =&gt; {  
     const answer = await doMyRequest(lineOfMyTable) // my axios.get request
     return updateTableLine(answer) // the functions that update the good line
     })
  );
  
  //all promises are good now
  setIsLoading(false)
  </code></pre>
  <p>So, basically I want to have another loop that runs each 2 seconds while &quot;isLoading&quot; is true to update another part of my front and show the logs meanwhile. But I need both things to happen at the same time!</p>
  <p>Thank you for your ideas :)</p>