src/middleware/request/requestInterval.js
function checkQueue() {
    if(!inInterval()) {
      if(requestQueue.length) {
        var next = requestQueue.shift();
        sendRequest(next);
      } else if(timer) {
        clearInterval(timer); // No need to leave the timer running if we don't have any requests.
      }
    }
  }
function checkQueue() {
    if(!inInterval()) {
      if(requestQueue.length) {
        var next = requestQueue.shift();
        sendRequest(next);
      } else if(timer) {
        clearInterval(timer); // No need to leave the timer running if we don't have any requests.
      }
    }
  }
function checkQueue ( ) { if ( ! inInterval ( ) ) { if ( requestQueue . length ) { var next = requestQueue . shift ( ) ; sendRequest ( next ) ; } else if ( timer ) { clearInterval ( timer ) ; // No need to leave the timer running if we don't have any requests. } } }
Check to see if we're ready to send any requests.
Check to see if we re ready to send any requests .