A simple, dependency-free library for concurrent promise-based queues. Comes with with concurrency and timeout control.
MIT License
Bot releases are visible (Hide)
Published by Bartozzz over 4 years ago
Published by Bartozzz over 4 years ago
Fixes:
Published by Bartozzz over 4 years ago
Breaking changes:
The queue.dequeue()
method is executed at most once per every options.interval
milliseconds.
In the previous implementation, timeout control was guaranteed by the internal setInterval
method created by Queue.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();
}
Changes:
concurrent
option is set to 1
;Fixed issues:
Published by Bartozzz about 6 years ago
Published by Bartozzz over 6 years ago