queuetab
v1.0.0
Published
Small module to execute tasks in a queue
Downloads
2
Readme
About QueueTab
QueueTab is a small JavaScript module to execute tasks in a queue.
Installation
Install the package with npm
npm install queuetab
Usage
const QueueTab = require('queuetab');
const queuetab = new QueueTab();
// asyncFunc is an example function, use your actual function instead
queuetab.add(asyncFunc, (err, res) => console.log('finished task 1', err, res));
queuetab.add(asyncFunc, (err, res) => console.log('finished task 2', err, res));
Contributing
Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/MyFeature
) - Commit your Changes (
git commit -m 'Add MyFeature'
) - Push to the Branch (
git push origin feature/MyFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.