From 7f3110ec388bdf6b72579b70a5736f3f53809de4 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Sat, 22 Feb 2020 23:04:36 -0500
Subject: preliminary fetchqueue framework
---
utils/fetchqueue.js | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 utils/fetchqueue.js
diff --git a/utils/fetchqueue.js b/utils/fetchqueue.js
new file mode 100644
index 0000000..207178e
--- /dev/null
+++ b/utils/fetchqueue.js
@@ -0,0 +1,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
--
cgit