v2.0.0
Breaking changes:
-
The
queue.dequeue()method is executed at most once per everyoptions.intervalmilliseconds.In the previous implementation, timeout control was guaranteed by the internal
setIntervalmethod created byQueue.start(). Now, there's a possibility to manually control the queue execution, as follows:while (!queue.isEmpty && !queue.stopped) { // Will be executed at most once per every `options.interval` milliseconds: const result = await queue.dequeue(); }