queue-promise

A simple, dependency-free library for concurrent promise-based queues. Comes with with concurrency and timeout control.

MIT License

Downloads
72.1K
Stars
91
Committers
8

Bot releases are hidden (Show)

queue-promise - v2.2.1 Latest Release

Published by Bartozzz over 3 years ago

2.2.1 (2021-05-18)

Bug Fixes

  • #549: fix throttling dequeue in browser (#554) (6fefefe)
queue-promise - v2.2.0

Published by Bartozzz over 3 years ago

2.2.0 (2021-05-01)

Features

  • add queue size property (d9aca4e)
queue-promise - v2.1.0

Published by Bartozzz over 4 years ago

2.1.0 (2020-07-01)

Bug Fixes

  • ci/cd: add suffix on cyclic-master-bump branch (0cf6566)
  • ci/cd: fix cyclic-master-bump workflow (5948c01)
  • CodeSandbox: fix CodeSandbox examples paths (c9d1fe2)
  • prevent uniqueId overflow (ef908fe)
  • CodeSandbox: fix CodeSandbox examples paths (962596a)
  • prevent uniqueId overflow (e961a6e)

Features

  • CI/CD: add cyclic-master-bump workflow (f17a2f0)
  • CI/CD: add token for cyclic-master-bump workflow (f3054ef)
  • CI/CD: add token for cyclic-master-bump workflow (bb9a0ff)
  • CI/CD: create cyclic-master-merge workflow (fa5bb22)
  • CI/CD: fix cyclic-master-bump workflow (9c8212b)
  • add scripts for automatic version bump (9d55c9e)
  • CI/CD: add cyclic-master-bump workflow (ed0b67a)
  • CI/CD: create cyclic-master-merge workflow (91d638a)
  • CI/CD: fix cyclic-master-bump workflow (8b6bc77)
  • CodeSandbox: add config for CodeSandbox bot (3d7cdbd)
  • CodeSandbox: add config for CodeSandbox bot (dc2ea58)
  • CodeSandbox: add two CodeSandbox example sandboxes (9453c2f)
  • CodeSandbox: add two CodeSandbox example sandboxes (32c108d)
  • commitlint: add commitlint config (94c02af)
  • add scripts for automatic version bump (09e595a)
  • commitlint: add commitlint config (d13fe17)
queue-promise - v2.0.1

Published by Bartozzz over 4 years ago

Fixes:

  • Fixed internal task execution loop.
queue-promise - v2.0.0

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

Published by Bartozzz almost 5 years ago

Changes:

  • Prevent src, test and redundant other files from being published on npm;
queue-promise -

Published by Bartozzz almost 5 years ago

Changes:

  • Update dependencies;
  • Minify code when bundling;
queue-promise -

Published by Bartozzz almost 5 years ago

Changes:

  • Update dependencies;
  • Prevent starting the queue if there's no tasks;
  • Dequeue value instead of array if concurrent option is set to 1;

Fixed issues:

queue-promise -

Published by Bartozzz almost 5 years ago

Fixed issues:

  • #60: fixed invalid calculations of currently handled promises when launching on empty queue;
queue-promise - v1.3.0

Published by Bartozzz about 6 years ago

queue-promise - v1.2.1

Published by Bartozzz over 6 years ago

Package Rankings
Top 3.16% on Npmjs.org
Badges
Extracted from project README
Default CI/CD Known Vulnerabilities npm package size npm version npm dependency Status npm downloads Github Open Issues Github Closed Issues Github Pull Requests
Related Projects