Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Conqueue is a simple yet powerful asynchronous queue implementation for managing concurrency and controlling the flow of asynchronous tasks. It supports various modes, such as callbacks, promises, FIFO, LIFO, priority, factor and round-robin, providing flexibility for different use cases.
npm install conqueue
const Queue = require('conqueue');
const job = (taskId, cb) => {
setTimeout(() => {
if (taskId === 4) {
cb(new Error('Biggest error!!!'));
return;
}
cb(null, taskId);
}, 0);
};
// Create a queue with a concurrency limit of 3
const queue = new Queue(3)
.process(job)
.done((err, res) => {
if (err) console.error(err);
else console.log(res);
})
.success(({ res }) => {
console.log(`Response: ${res}`);
})
.failure((err) => {
console.error(`Task failed: ${err}`);
})
.drain(() => {
console.log('Queue drain!');
});
// Add tasks to the queue
for (let i = 0; i < 10; i++) {
queue.add(i);
}
Queue(concurrency, size = Infinity)
This project is licensed under the MIT License - see the LICENSE.md file for details.
FAQs
Multifunctional asynchronous concurrent queue
The npm package conqueue receives a total of 0 weekly downloads. As such, conqueue popularity was classified as not popular.
We found that conqueue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.