// 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