A Task-Queue. This could be used to make parallel
Request run sequentially. For Instance during
Saving and Reading Vars to achive a consistent set
of Data.
Usage:
// Create a Queue const_queue = newPriorityTaskQueue(); // Create a Function const_func = (_input: string, _cb) => { console.log("Hallo ", _input) _cb(null, null); }
// => Hallo Welt priority=0 <- Startet directly. // => Hallo Welt priority=2 <- Startet because it has the highest priority. // => Hallo Welt priority=1
A Task-Queue. This could be used to make parallel Request run sequentially. For Instance during Saving and Reading Vars to achive a consistent set of Data.
Usage:
Export