Note 🚨 This branch contains the
v2
version of the package which is still in active development. For docs and details onv1
, visit the old branch or the website.
A simple task runner which will run all tasks till completion, while maintaining concurrency limits.
This branch is for the current rewrite (v2
) of the package from ground up in TypeScript and featuring a more modular structure.
@concurrent-tasks/core
(status: implemented): Allows you to create, manage and execute a task runner in virtually any environment or flavour of JavaScript.
@concurrent-tasks/strategy-sync
(status: implemented): A simple strategy which accepts a promise and moves on to the next task automatically when a Promise resoves itself.- [
@concurrent-tasks/strategy-priority
] (status: wip): A strategy which allows the creation of a priority queue and allows execution of tasks as per priority.
The core
package can be tried out but please be aware it is still in beta
and though it is considered more-or-less stable. Useage in production environment is discouraged.
If you are keen on contributing to the development of this package, please feel free to create a PR.
Alternatively, if you have created an independent package which implements a strategy, please do not hesitate to create a PR which adds it to the README.
The guides on implementing strategies are currently being written. You can check out the strategies/strategy-sync
for an example.