A synchronous execution queue for asynchronous callbacks that prevents event loop blocking. Version 3.0.0, stable, uses a manual next() pattern similar to Express middleware. The first pushed callback executes immediately; subsequent calls are queued. Supports initArgs for default arguments across all callbacks and argument passing via push() and next(). Unlike async.queue or p-limit, it enforces sequential execution with explicit next invocation. Requires Node >14.0.0.
npm install ca11back-queueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates queue creation, pushing two callbacks with argument passing via push and next.
Ensure every callback invokes next() exactly once.
Update Node to >=14.0.0.
Push all callbacks synchronously to ensure ordering.
Use next() with explicit arguments to propagate dynamic data.
Define callback as function(next, ...args) { next(); }.Instantiate with new CallbackQueue('arg1') and use parameter names in callback.Pass a function as the first argument to queue.push().
No dependency data recorded yet.