Skip to content

v2.0.0

Choose a tag to compare

@Bartozzz Bartozzz released this 29 Mar 19:20
c7565ab

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();
    }