aboutsummaryrefslogtreecommitdiff
path: root/utils/fetchqueue.js
blob: 207178efbc62fd79b4298e92f8481b87dbb94724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Implements an abstraction layer upon tools/schedule.js's .pause

class fetchQueue{
  constructor(timeoutms){
    this.set
    var fetchs = [];
  }
  this.addfetch = function(fetch){
    fetchs.push(fetch);
  }
  this.getfetch = function(){
    return fetchs.splice(0);
  }
}
module.exports = fetchQueue; // Meant to be called as an extension to a socket & tools/schedule class