
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
atomic-queue
Advanced tools
a crash friendly queue that persists queue state and can restart. uses a worker pool and has configurable concurrency
a crash friendly queue that persists queue state and can restart. uses a worker pool and has configurable concurrency
for example usage see test.js
var queue = require('atomic-queue')(worker, opts)
initialize a new queue with a worker
function and optional options. queue
is a stream
you queue things by writing them to the queue stream:
queue.write('hello')
queue.write('goodbye')
queue.write({name: 'bob'})
worker
must be a function that has this API:
function work (data, done) {
// do work, then call done with (err) if there was an error
}
data
in the worker function will be the data you wrote into the queue above
in addition to standard stream events you can also listen to the following:
emitted after startup when the queue state has been read from disk and the queue is now ready to start working
when a catastrophic error has occurred
when the queue starts flushing its state to disk
when the queue finishes flushing its state to disk
when a job starts working
when a job finishes working
FAQs
a crash friendly queue that persists queue state and can restart. uses a worker pool and has configurable concurrency
We found that atomic-queue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.