A work queue that pivots events to error-first callbacks. Version 13.0.4 provides an asynchronous task queue library for Node.js, allowing developers to define and run tasks with error-first callbacks. It offers a flexible and efficient way to manage work queues, similar to Cadence. The library is maintained and follows a regular release cadence. Unlike other task queues, reactor focuses on converting event-driven flows into callback-based patterns, making it suitable for scenarios like batch processing or workflow orchestration with explicit error handling.
npm install reactorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a reactor work queue with a simple task that logs a message and handles completion or error via a callback.
Convert require() calls to import statements; use dynamic import if necessary.
Replace 'new Reactor()' with 'createReactor()'.
Install cadence: npm install cadence
Ensure step() is called exactly once per callback to continue the workflow.
npm install cadence
Use 'createReactor' named import.
Add "type": "module" to package.json or rename file to .mjs.